rename_clusters: Renames clusters in a domino object

View source: R/convenience_fxns.R

rename_clustersR Documentation

Renames clusters in a domino object

Description

This function reads in a receptor ligand signaling database, cell level features of some kind (ie. output from pySCENIC), z-scored single cell data, and cluster id for single cell data, calculates a correlation matrix between receptors and other features (this is transcription factor module scores if using pySCENIC), and finds features enriched by cluster. It will return a domino object prepared for build_domino, which will calculate a signaling network.

Usage

rename_clusters(dom, clust_conv)

Arguments

dom

A domino object to rename clusters in

clust_conv

A named vector of conversions from old to new clusters. Values are taken as new clusters IDs and names as old cluster IDs.

Value

A domino object with clusters renamed in all applicable slots.


Chris-Cherry/domino documentation built on Dec. 9, 2024, 12:28 a.m.