runKMeans | R Documentation |
Perform KMeans clustering on a
SingleCellExperiment object, with kmeans
.
runKMeans(
inSCE,
nCenters,
useReducedDim = "PCA",
clusterName = "KMeans_cluster",
nComp = 10,
nIter = 10,
nStart = 1,
seed = 12345,
algorithm = c("Hartigan-Wong", "Lloyd", "MacQueen")
)
inSCE |
A SingleCellExperiment object. |
nCenters |
An |
useReducedDim |
A single |
clusterName |
A single |
nComp |
An |
nIter |
An |
nStart |
An |
seed |
An |
algorithm |
A single |
The input SingleCellExperiment object with
factor
cluster labeling updated in
colData(inSCE)[[clusterName]]
.
data("mouseBrainSubsetSCE")
mouseBrainSubsetSCE <- runKMeans(mouseBrainSubsetSCE,
useReducedDim = "PCA_logcounts",
nCenters = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.