create_hierarchy: Create hierarchical tree

Description Usage Arguments Value Author(s) Examples

View source: R/training.R

Description

Creates a tree object representing a cell-type hierarchy

Usage

1
create_hierarchy(branches)

Arguments

branches

A character vector containing n number of branches. Each branch corresponds to a cell type. Each level is delimited by "/" character. For example, the following branch is composed by three levels and the _terminal_ cell type is pDC: "Myeloid/DC/pDC"

Value

A data.tree object containing the cell type hierarchy

Author(s)

Lieke Michielsen and Jose Alquicira-Hernandez

Examples

1
2
branches <- c("Myeloid/DC/pDC", "Myeloid/DC/cDC")
h <- create_hierarchy(branches)

joseah/HierscPred documentation built on Nov. 25, 2021, 12:20 p.m.