GetMetaclusters: Get metacluster label for all individual cells

Description Usage Arguments Value Examples

View source: R/2_buildSOM.R

Description

Get metacluster label for all individual cells

Usage

1
GetMetaclusters(fsom, meta = NULL)

Arguments

fsom

FlowSOM object as generated by the FlowSOM function or the BuildSOM function

meta

Metacluster label for each FlowSOM cluster. If this is NULL, the fsom argument should be as generated by the FlowSOM function, and fsom$metaclustering will be used.

Value

vector label for every cell

Examples

1
2
3
4
5
6
fileName <- system.file("extdata", "68983.fcs", package="FlowSOM")
flowSOM.res <- FlowSOM(fileName, compensate=TRUE,transform=TRUE,
                      scale=TRUE,colsToUse=c(9,12,14:18),nClus=10)
metacluster_labels <- GetMetaclusters(flowSOM.res)
metacluster_labels <- GetMetaclusters(flowSOM.res$FlowSOM,
                                      meta = flowSOM.res$metaclustering)

FlowSOM documentation built on Nov. 8, 2020, 6:40 p.m.