modify_label: Modify label for tree nodes

View source: R/modify_label.R

modify_labelR Documentation

Modify label for tree nodes

Description

Rename the node labels

Usage

modify_label(new_label, hierarchy_list, cell_meta, verbose = T)

Arguments

new_label

A data frame specifying old and new names for each node. Must contain two columns named as 'old' (corresponds to old celltype name) and 'new' (corresponds to new celltype name).

hierarchy_list

A hierarchy list by running extract_hrchy_string() or extract_hrchy_seurat() functions, which contains four elements: 'edges', 'layout', 'immediate_children' and 'leaves_info'.

cell_meta

Cell-level metadata, where each row is a cell. Must contain these columns: barcode, celltype and sample.

verbose

Show progress

Value

A list that contains modified hierarchy_list and/or cell_meta

Author(s)

Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji


byzhang23/TreeCorTreat documentation built on May 7, 2024, 8:37 a.m.