get_ancestors: Get set of terms containing all ancestors of terms in a given...

Description Usage Arguments Value See Also Examples

View source: R/sets.R

Description

Get set of terms containing all ancestors of terms in a given set

Usage

1
get_ancestors(ontology, terms)

Arguments

ontology

ontology_index object.

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

1
2
data(hpo)
get_ancestors(hpo, c("HP:0001873", "HP:0011877"))

oganm/ontologyIndexOgfork documentation built on Oct. 11, 2019, 2:53 a.m.