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

View source: R/descendants.R

get_descendantsR Documentation

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

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

ontologyIndex documentation built on May 31, 2023, 5:58 p.m.