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

View source: R/sets.R

get_ancestorsR 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

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

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

ontologyIndex documentation built on July 4, 2024, 1:08 a.m.