View source: R/supercell_purity.R
supercell_purity | R Documentation |
Compute purity of super-cells
supercell_purity(
clusters,
supercell_membership,
method = c("max_proportion", "entropy")[1]
)
clusters |
vector of clustering assignment (reference assignment) |
supercell_membership |
vector of assignment of single-cell data to super-cells (membership field of SCimplify function output) |
method |
method to compute super-cell purity.
|
a vector of super-cell purity, which is defined as:
- proportion of the most abundant cluster within super-cell for method = "max_proportion"
or
- Shanon entropy for method = "entropy"
.
With 1 meaning that super-cell consists of single cells from one cluster (reference assignment)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.