Learn R Programming

ontologyIndex (version 2.2)

intersection_with_descendants: Intersect a set of terms with the descendants of a given set of roots

Description

Intersect a set of terms with the descendants of a given set of roots

Usage

intersection_with_descendants(ontology, roots, terms)

Arguments

ontology
ontology_index object.
roots
Character vector of IDs for terms with respect to which descendants are to be defined.
terms
Character vector of ontological terms.

Value

Character vector of terms

See Also

exclude_descendants, prune_descendants

Examples

Run this code
data(hpo)
intersection_with_descendants(hpo, c("HP:0001872", "HP:0000707"), c("HP:0001873", "HP:0011877"))

Run the code above in your browser using DataLab