getIndices,ncdfFlowSet,character-method | R Documentation |
getIndices
extracts the event indices of one or multiple samples from ncdfFlowSetThese functions are mainly for internal usage and normally not to be used by users.
## S4 method for signature 'ncdfFlowSet,character' getIndices(obj, y) ## S4 method for signature 'ncdfFlowSet' initIndices(obj) ## S4 method for signature 'ncdfFlowSet,character,logical' updateIndices(obj, y, z)
obj |
|
y |
|
z |
|
a logical vector.
data(GvHD) nc <- ncdfFlowSet(GvHD[1:2]) sn <- sampleNames(nc)[1] nrow(nc[[sn]]) getIndices(nc, sn) #initial index is NA #subset with filter library(flowStats) morphGate <- norm2Filter("FSC-H", "SSC-H", filterId = "MorphologyGate",scale = 2) nc1 <- Subset(nc, morphGate) ind <- getIndices(nc1, sn) # all.equal(sum(ind), nrow(nc1[[sn]])) initIndices(nc1) getIndices(nc1, sn) #reset indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.