ncfsApply,ncdfFlowSet-method {ncdfFlow} | R Documentation |
It is equivalent to fsApply
. But the latter could cause memory issue
when FUN
returns a flowFrame
. ncdfApply
writes to a new cdf file instead of memory.
Thus it will return a ncdfFlowSet object.
## S4 method for signature 'ncdfFlowSet' ncfsApply(x, FUN, ..., use.exprs = FALSE, ncdfFile = NULL)
x |
|
FUN |
|
... |
other arguments to pass to |
use.exprs |
|
ncdfFile |
|
When the function given by argument "FUN" does not return the entire flowFrame object with the same
size of the original one (such as compensate,transform...), fsApply
should be used instead.
data(GvHD) nc <- ncdfFlowSet(GvHD[1:2]) #use fsApply when FUN does not return a flowFrame fsApply(nc, nrow) fsApply(nc, range) #use ncfsApply when FUN returns a flowFrame lgcl <- logicleTransform( w = 0.5, t= 10000, m =4.5) translist <- transformList(c("FL1-H", "FL2-H"), lgcl) nc1 <- ncfsApply(nc, transform, translist)