getAnnotationPerParent: Get Annotation Per Parent

View source: R/utils.R

getAnnotationPerParentR Documentation

Get Annotation Per Parent

Description

for each cell type get annotation of its subtypes on the next hierarchy level

Usage

getAnnotationPerParent(classification.tree, annotation)

Arguments

classification.tree

cell type hierarchy represented by graph. Part of 'clf_data' object from 'getClassificationData'

annotation

annotation for high-resolution. Cell type names must correspond to nodes in the 'classification.tree'

Value

list of sub-annotations named by parent types

Examples

  ann_by_parent <- getAnnotationPerParent(clf_data$classification.tree, annotation)

khodosevichlab/CellAnnotatoR documentation built on June 29, 2022, 9:12 p.m.