Assign super-cells to the most aboundant cluster
supercell_assign(
clusters,
supercell_membership,
method = c("jaccard", "relative", "absolute")
)
a vector of super-cell assignment to clusters
a vector of clustering assignment
a vector of assignment of single-cell data to super-cells (membership field of SCimplify function output)
method to define the most abuldant cell cluster within super-cells. Available: "jaccard" (default), "relative", "absolute".
jaccard - assignes super-cell to cluster with the maximum jaccard coefficient (recommended)
relative - assignes super-cell to cluster with the maximum relative abundance (normalized by cluster size), may result in assignment of super-cells to poorly represented (small) cluser due to normalizetaion
absolute - assignes super-cell to cluster with the maximum absolute abundance within super-cell, may result in disappearence of poorly represented (small) clusters