Description Usage Arguments Value Examples
View source: R/cytof_cluster.R
Apply clustering algorithms to detect cell subsets. DensVM and ClusterX
clustering is based on the transformend ydata and use xdata to train the model.
While Rphenograph directly works on the high dimemnional xdata. FlowSOM is
integrated from FlowSOM pacakge (https://bioconductor.org/packages/release/bioc/html/FlowSOM.html).
1 2 | cytof_cluster(ydata = NULL, xdata = NULL, method = c("Rphenograph",
"ClusterX", "DensVM", "FlowSOM", "NULL"), FlowSOM_k = 40)
|
ydata |
A matrix of the dimension reduced data. |
xdata |
A matrix of the expression data. |
method |
Cluster method including |
FlowSOM_k |
Number of clusters for meta clustering in FlowSOM. |
a vector of the clusters assigned for each row of the ydata
1 2 3 4 5 6 7 | d<-system.file('extdata', package='cytofkit')
fcsFile <- list.files(d, pattern='.fcs$', full=TRUE)
parameters <- list.files(d, pattern='.txt$', full=TRUE)
markers <- as.character(read.table(parameters, sep = "\t", header = TRUE)[, 1])
xdata <- cytof_exprsMerge(fcsFile, markers = markers, mergeMethod = 'fixed', fixedNum = 100)
ydata <- cytof_dimReduction(xdata, method = "tsne")
clusters <- cytof_cluster(ydata, xdata, method = "ClusterX")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.