Description Usage Arguments Details Value References See Also
View source: R/sample_clusters.R
Hint: if it doesn't work, you might have too many clusters. Try different options to cluster_velo_txis until you get a tranctable representation. Feel free to plot the various representations and/or look at silhouette plots, modularity, whatever until you feel comfortable that the clusters don't suck.
1 | sample_clusters(txis, n = 100)
|
txis |
a SingleCellExperiment with cluster assignments in colLabels |
n |
how many cells per cluster to sample at most? (500) |
batch |
batch term (will use $sample if none) |
block |
block term (will omit if none) |
... |
additional arguments to scuttle::downsampleBatches if using |
And remember: Clustering Is Difficult Only When It Does Not Matter (ref 1).
1 | a downsampled SingleCellExperiment
|
\ Daniely A, Linial N, Saks M. (2012) \ Clustering is difficult only when it does not matter. \ https://arxiv.org/abs/1205.4891
1 | scuttle::downsampleBatches
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.