intersection_with_descendants {ontologyIndex}R Documentation

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

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

[Package ontologyIndex version 2.12 Index]