supercell_assign: Assign super-cells to the most aboundant cluster

View source: R/supercell_assign.R

supercell_assignR Documentation

Assign super-cells to the most aboundant cluster

Description

Assign super-cells to the most aboundant cluster

Usage

supercell_assign(
  clusters,
  supercell_membership,
  method = c("jaccard", "relative", "absolute")
)

Arguments

clusters

a vector of clustering assignment

supercell_membership

a vector of assignment of single-cell data to super-cells (membership field of SCimplify function output)

method

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

Value

a vector of super-cell assignment to clusters


SuperCell documentation built on Oct. 25, 2024, 5:07 p.m.