get_ancestors {ontologyIndex} | R Documentation |
Get set of terms containing all ancestors of terms in a given set
Description
Get set of terms containing all ancestors of terms in a given set
Usage
get_ancestors(ontology, terms)
Arguments
ontology |
|
terms |
Character vector of ontological terms. |
Value
Character vector of all terms which are an ancestor of at least one term in terms
, including the terms themselves
See Also
link{get_descendants}
Examples
data(hpo)
get_ancestors(hpo, c("HP:0001873", "HP:0011877"))
[Package ontologyIndex version 2.12 Index]