liftCellChat: Update a CellChat object by lifting up the cell groups to the...

View source: R/CellChat_class.R

liftCellChatR Documentation

Update a CellChat object by lifting up the cell groups to the same cell labels across all datasets

Description

This function is useful when comparing inferred communications across different datasets with different cellular compositions

Usage

liftCellChat(object, group.new = NULL)

Arguments

object

A single or merged CellChat object

group.new

A char vector giving the cell labels to lift up. The order of cell labels in the vector will be used for setting the new cell identity.

If the input is a merged CellChat object and group.new = NULL, it will use the cell labels from one dataset with the maximum number of cell groups

If the input is a single CellChat object, 'group.new' must be defined.

Value

a updated CellChat object


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