Get ancestors to Cell Ontology IDs
get_ancestors(
meta,
id_col = "cell_ontology_id",
ontology = NULL,
levels_up = 1,
ancestor_col = paste0("ancestor", levels_up)
)The original meta object with the new ancestor_col.
if (FALSE) { # \dontrun{
hpca_sce <- celldex::HumanPrimaryCellAtlasData()
meta_ancest <- get_ancestors(
meta = SummarizedExperiment::colData(hpca_sce),
id_col = "label.ont"
)
} # }