View source: R/find_marker_signs.R
compute_sepI_all | R Documentation |
This function computes separation indices for each cluster versus the others.
compute_sepI_all(sce = NULL, labels = NULL, nrand_samples = NULL)
sce |
A SingleCellExperiment object. |
labels |
A vector of labels of all the samples (cells). |
nrand_samples |
An integer for the number of samples used for random sampling, which samples at least one sample per cluster. |
A SingleCellExperiment object.
data(pbmcs_eg) labels <- SummarizedExperiment::colData(pbmcs_eg$GO)$seurat_clusters pbmcs_eg$GO <- compute_sepI_all(sce = pbmcs_eg$GO, labels = labels, nrand_samples = 10) # The results are stored in `metadata(pbmcs_eg$GO)$marker_signs`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.