Description Usage Arguments Value References See Also Examples
Build a SOM based on the data contained in the FlowSOM object
1 |
fsom |
FlowSOM object containing the data, as constructed by
the |
colsToUse |
column names or indices to use for building the SOM |
silent |
if |
... |
options to pass on to the SOM function (xdim, ydim, rlen, mst, alpha, radius, init, distf, importance) |
FlowSOM object containing the SOM result, which can be used as input
for the BuildMST
function
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Read from file
fileName <- system.file("extdata", "68983.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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.