prune_descendants: Exclude terms descending from a given set of roots but...

View source: R/descendants.R

prune_descendantsR Documentation

Exclude terms descending from a given set of roots but include those roots which were originally implicitly present.

Description

Given two sets of terms, roots and terms, construct a set of terms containing those in terms which do not descend from any term in roots, and also any terms in roots which are ancestors of any term in terms.

Usage

prune_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, intersection_with_descendants


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