Compute purity of super-cells
supercell_purity(
clusters,
supercell_membership,
method = c("max_proportion", "entropy")[1]
)
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)
vector of clustering assignment (reference assignment)
vector of assignment of single-cell data to super-cells (membership field of SCimplify function output)
method to compute super-cell purity.
"max_proportion"
if the purity is defined as a proportion of the most abundant cluster (cell type) within super-cell or
"entropy"
if the purity is defined as the Shanon entropy of the cell types super-cell consists of.