View source: R/cell_type_mapping.R
find_children | R Documentation |
Traverses the cell type hierarchy, summing up cell type fractions when necessary.
find_children(node, fractions, method_dataset = NULL)
node |
data.tree::Node corresponding to a controlled vocabulary cell type |
fractions |
a named list of fractions for each method_cell_type |
method_dataset |
character identifying the method or dataset in the celltype_mapping. If NULL, the input vector already uses controlled vocabulary. |
numeric Either (1) the value of the method_cell_type mapped to cell_type, (2) the sum of all child nodes (recursively) of cell_type (3) NA, if the mapping cannot be resolved, i.e. at least one of the child nodes is missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.