updateClusterLabels: Update and re-order the cell group names after running...

View source: R/utilities.R

updateClusterLabelsR Documentation

Update and re-order the cell group names after running 'computeCommunProb'

Description

Update and re-order the cell group names after running 'computeCommunProb'

Usage

updateClusterLabels(
  object,
  old.cluster.name = NULL,
  new.cluster.name = NULL,
  new.order = NULL,
  new.cluster.metaname = "new.labels"
)

Arguments

object

CellChat object

old.cluster.name

A vector defining old cell group labels in 'object@idents'; Default = NULL, which will use 'levels(object@idents)'

new.cluster.name

A vector defining new cell group labels to rename

new.order

reset order of cell group labels

new.cluster.metaname

assign a name of the new labels, which will be the column name of new labels in 'object@meta'

Value

An updated CellChat object


sqjin/CellChat documentation built on Nov. 10, 2023, 4:29 a.m.