GetMetaclusters: Get metacluster label for all individual cells

View source: R/2_buildSOM.R

GetMetaclustersR Documentation

Get metacluster label for all individual cells

Description

Get metacluster label for all individual cells

Usage

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

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,
                                      meta = flowSOM.res$metaclustering)


SofieVG/FlowSOM documentation built on Feb. 1, 2024, 11:33 a.m.