NewData {FlowSOM} | R Documentation |
New data from a flowframe is mapped to an existing FlowSOM object. A new FlowSOM object is created, with the same grid, but a new mapping, node sizes and mean values. We assume the data is already compensated and transformed, but not scaled yet. The same scaling parameters as from the original grid will be used.
NewData(fsom, ff)
fsom |
FlowSOM object |
ff |
Flow frame with the data to map |
A new FlowSOM object
FlowSOMSubset
if you want to get a subset of the
current data instead of a new dataset
# Build FlowSom result fileName <- system.file("extdata","lymphocytes.fcs",package="FlowSOM") ff <- flowCore::read.FCS(fileName) ff <- flowCore::compensate(ff,ff@description$SPILL) ff <- flowCore::transform(ff, flowCore::transformList(colnames(ff@description$SPILL), flowCore::logicleTransform())) flowSOM.res <- FlowSOM(ff[1:1000,],scale=TRUE,colsToUse=c(9,12,14:18), maxMeta=10) # Map new data fSOM2 <- NewData(flowSOM.res[[1]], ff[1001:2000,])