get_subclusters: Perform leiden subclustering to get cell subtypes

View source: R/get_prop_associations.R

get_subclustersR Documentation

Perform leiden subclustering to get cell subtypes

Description

Perform leiden subclustering to get cell subtypes

Usage

get_subclusters(
  container,
  ctype,
  resolution,
  min_cells_group = 50,
  small_clust_action = "merge"
)

Arguments

container

environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses

ctype

character The cell type to do subclustering for

resolution

numeric The leiden resolution to use

min_cells_group

numeric The minimum allowable cluster size (default=50)

small_clust_action

character Either 'remove' to remove subclusters or 'merge' to merge clusters below min_cells_group threshold to the nearest cluster above the size threshold (default='merge')

Value

A vector of cell subclusters.


scITD documentation built on Sept. 8, 2023, 5:11 p.m.