To assist metacell object building in compute the purity of metacells with respect to each covariate
mcRigor_purity.Rd
To assist metacell object building in compute the purity of metacells with respect to each covariate
Usage
mcRigor_purity(
sc_covariate,
sc_membership,
method = c("max_proportion", "entropy")[1]
)
Arguments
- sc_covariate
vector of single cell covariates
- sc_membership
vector of assignment of single-cell data to metacells
- method
method to compute metacell purity.
"max_proportion"
if the purity is defined as a proportion of the most abundant covariate (cell type) within super-cell or"entropy"
if the purity is defined as the Shanon entropy of the covariates metacell consists of.