View source: R/get_ancestors.R
get_ancestors | R Documentation |
Get ancestors to Cell Ontology IDs
get_ancestors(
meta,
id_col = "cell_ontology_id",
ontology = ontoProc::getCellOnto(),
levels_up = 1,
ancestor_col = paste0("ancestor", levels_up)
)
meta |
Metadata |
id_col |
Name of the column in |
ontology |
A controlled ontology object of class |
levels_up |
How many levels up the ontology hierarchy should ancestors be retrieved from. |
ancestor_col |
The name of the column where the ancestor IDs will be stored. |
The original meta
object with the new ancestor_col
.
## Not run:
hpca_sce = celldex::HumanPrimaryCellAtlasData()
meta_ancest <- get_ancestors(meta=hpca_sce@colData , id_col="label.ont")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.