getSubTerms: Retrieve a term and its children from a vocab DAG

View source: R/getPackNames.R

getSubTermsR Documentation

Retrieve a term and its children from a vocab DAG

Description

Given a Directed Acyclic Graph (DAG) represented as a graphNEL instance, return a character vector consisting of the specified term and all of its descendants. That is, give the list of terms for which a path exists starting at term.

Usage

getSubTerms(dag, term)

Arguments

dag

A graphNEL representing a DAG

term

A string giving a term in the vocabulary (a node in dag)

Value

A character vector of term names.

Author(s)

S. Falcon

Examples

data(biocViewsVocab)
getSubTerms(biocViewsVocab, "Software")

Bioconductor/biocViews documentation built on Nov. 2, 2024, 7:23 a.m.