Description Usage Arguments Value See Also Examples
Take some input and return FlowSOM object containing a matrix with the preprocessed data (compensated, transformed, scaled)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
input |
a flowFrame, a flowSet or an array of paths to files or directories |
pattern |
if input is an array of file- or directorynames, select only files containing pattern |
compensate |
logical, does the data need to be compensated |
spillover |
spillover matrix to compensate with
If |
transform |
logical, does the data need to be transformed |
toTransform |
column names or indices that need to be transformed.
If |
transformFunction |
Defaults to logicleTransform() |
scale |
logical, does the data needs to be rescaled |
scaled.center |
see |
scaled.scale |
see |
silent |
if |
FlowSOM object containing the data, which can be used as input for the BuildSOM function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Read from file
fileName <- system.file("extdata", "68983.fcs", package="FlowSOM")
flowSOM.res <- ReadInput(fileName, compensate=TRUE,transform=TRUE,
scale=TRUE)
# Or read from flowFrame object
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 <- ReadInput(ff,scale=TRUE)
# Build the self-organizing map and the minimal spanning tree
flowSOM.res <- BuildSOM(flowSOM.res,colsToUse=c(9,12,14:18))
flowSOM.res <- BuildMST(flowSOM.res)
# Apply metaclustering
metacl <- MetaClustering(flowSOM.res$map$codes,
"metaClustering_consensus",max=10)
# Get metaclustering per cell
flowSOM.clustering <- metacl[flowSOM.res$map$mapping[,1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.