| peak_gate {flowQB} | R Documentation |
This method finds a density peak in the provided object (which shall be either a matrix or flowCore's flowFrame object) and returns a vector of TRUE/FALSE depending on whether each of the events (rows) are in the density peak. An FCS channel shall be specified if a flowFrame object with multiple channels in provided on the input.
peak_gate(object, ...)
object |
Object of class |
... |
Additional options, see the details section. |
Additional parameters of the method:
channelWhich FCS channel shall be used in order to look for the density peak? This is applicable if a flowFrame object with several channels is used on the input.
RThe radius to be used when finding the peak; R=1 by default.
A vector of TRUE/FALSE values depending on whether each of the events (rows) are located in the identified density peak.
Wayne Moore, Faysal El Khettabi, Josef Spidlen
library('flowCore')
library('flowQBData')
fcsFilePath <- system.file("extdata", "SSFF_LSRII", "Other_Tests",
"933745.fcs", package="flowQBData")
myFlowFrame <- read.FCS(fcsFilePath)
r1 <- peak_gate(myFlowFrame, 'FSC-H')
r2 <- peak_gate(exprs(myFlowFrame[,'SSC-H']))
## r3 will have more events than r2
r3 <- peak_gate(exprs(myFlowFrame[,'SSC-H']), R=1.5)