get_descendants {ontologyIndex}R 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")

[Package ontologyIndex version 2.12 Index]