powered by
Get set of terms containing all ancestors of terms in a given set
get_ancestors(ontology, terms)
Character vector of all terms which are an ancestor of at least one term in terms, including the terms themselves
terms
ontology_index object.
ontology_index
Character vector of ontological terms.
link{get_descendants}
data(hpo) get_ancestors(hpo, c("HP:0001873", "HP:0011877"))
Run the code above in your browser using DataLab