NewData: Map new data to a FlowSOM grid

Description Usage Arguments Value See Also Examples

View source: R/3_buildMST.R

Description

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.

Usage

1
NewData(fsom, ff)

Arguments

fsom

FlowSOM object

ff

Flow frame with the data to map

Value

A new FlowSOM object

See Also

FlowSOMSubset if you want to get a subset of the current data instead of a new dataset

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 # 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,])

FlowSOM documentation built on May 20, 2017, 9:36 p.m.

Search within the FlowSOM package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.