Description Usage Arguments Value Examples
Cluster the embedded representation using either kmeans or mixture models from the mclust package
1 | cluster_embedding(sce, method = c("mm", "kmeans"), k = NULL)
|
sce |
The SCESet object |
method |
Either 'kmeans' or 'mm' to use |
k |
The number of clusters to find in the data |
The dataframe M with a new numeric variable 'cluster' containing the assigned cluster
1 2 3 4 | library(scater)
data('sc_example_counts') ; sce <- newSCESet(countData = sc_example_counts)
sce <- embeddr(sce)
sce <- cluster_embedding(sce)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.