View source: R/flowDensity_methods.R
| getPeaks | R Documentation | 
Find all peaks in density along with their indices
getPeaks(obj, channel,tinypeak.removal=1/25, adjust.dens=1,verbose=F,twin.factor=1,spar = 0.4,...)
obj | 
 a 'FlowFrame', 'GatingHierarchy', 'CellPopulation' a density object or a numeric vector of density.  | 
channel | 
 a channel's name or its corresponding index. If the input is numeric vector, channel is NA.  | 
tinypeak.removal | 
 A number in [0,1] to exclude/include tiny peaks in density distribution. Default is 1/25.  | 
adjust.dens | 
 The smoothness of density in [0,Inf] to be used in density(.). The default value is 1 and should not be changed unless necessary  | 
verbose | 
 If TRUE, printing warnings.  | 
twin.factor | 
 If smaller than 1, peaks that are of greater than hieght as the maximum peak*twin.factor will be removed.  | 
spar | 
 argument to pass to smoothSpline function, default value of spar is 0.4.  | 
... | 
 Other arguments that can be passed to smoothSpline function.  | 
a list, including peaks, their corresponding indices and height.
Mehrnoush Malek <mmalekes@bccrc.ca>
deGate notSubFrame flowDensity
data_dir <- system.file("extdata", package = "flowDensity")
load(list.files(pattern = 'sampleFCS_1', data_dir, full = TRUE))
#Find the threshold for CD20
peaks <- getPeaks(f,channel="PerCP-Cy5-5-A",tinypeak.removal=1/30)
peaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.