Splits input metacell object into sub-objects by color group, naming the new metacells <mc_id>_submc_<group>

mcell_mc_split_by_color_group(
  mc_id,
  mat_id,
  min_cells_per_sub_mc = 500,
  col2grp = NULL
)

Arguments

mc_id

input mc object

mat_id

mat object corresponsing to mc_id

min_cells_per_sub_mc

minimum number of cells per group required to create a new metacell

col2grp

mapping of mc colors to groups, by default, use the color_key slot