NewData {FlowSOM} | R Documentation

## Map new data to a FlowSOM grid

### 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

    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

     # 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,])

[Package FlowSOM version 1.12.0 Index]