BuildSOM: Build a self-organizing map

Description Usage Arguments Value References See Also Examples

View source: R/2_buildSOM.R

Description

Build a SOM based on the data contained in the FlowSOM object

Usage

1
BuildSOM(fsom, colsToUse = NULL, silent = FALSE, ...)

Arguments

fsom

FlowSOM object containing the data, as constructed by the ReadInput function

colsToUse

column names or indices to use for building the SOM

silent

if TRUE, no progress updates will be printed

...

options to pass on to the SOM function (xdim, ydim, rlen, mst, alpha, radius, init, distf, importance)

Value

FlowSOM object containing the SOM result, which can be used as input for the BuildMST function

References

This code is strongly based on the kohonen package. R. Wehrens and L.M.C. Buydens, Self- and Super-organising Maps in R: the kohonen package J. Stat. Softw., 21(5), 2007

See Also

ReadInput,BuildMST

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Read from file
fileName <- system.file("extdata","lymphocytes.fcs",package="FlowSOM")
flowSOM.res <- ReadInput(fileName, compensate=TRUE,transform=TRUE,
                         scale=TRUE)

# Build the Self-Organizing Map
# E.g. with gridsize 5x5, presenting the dataset 20 times, 
# no use of MST in neighbourhood calculations in between
flowSOM.res <- BuildSOM(flowSOM.res,colsToUse=c(9,12,14:18),
                        xdim=5,ydim=5,rlen=20)

# Build the minimal spanning tree and apply metaclustering
flowSOM.res <- BuildMST(flowSOM.res)
metacl <- MetaClustering(flowSOM.res$map$codes,
                         "metaClustering_consensus",max=10)

FlowSOM documentation built on May 31, 2017, 11:26 a.m.

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