Learn R Programming

ontologyIndex (version 2.2)

get_descendants: Get set of terms containing all descendants of terms in a given set

Description

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

Usage

get_descendants(ontology, roots, exclude_roots = FALSE)

Arguments

ontology
ontology_index object.
roots
Character vector of IDs for terms with respect to which descendants are to be defined.
exclude_roots
Boolean determining whether to remove the given roots terms from the result.

Value

Character vector of terms

See Also

link{get_ancestors}

Examples

Run this code
data(hpo)
get_descendants(hpo, roots="HP:0001873")

Run the code above in your browser using DataLab