getLeavesFromTerm: obtain childless descendents of a term (including query)

View source: R/treeproc.R

getLeavesFromTermR Documentation

obtain childless descendents of a term (including query)

Description

obtain childless descendents of a term (including query)

Usage

getLeavesFromTerm(x, ont)

Arguments

x

a character(1) id element for ontology_index instance

ont

an ontology_index instance as defined in ontologyIndex package

Value

character vector of 'leaves' of ontology tree

Examples

ch = getOnto("chebi_lite")
alldr = getLeavesFromTerm("CHEBI:23888", ch)
head(ch$name[alldr[1:15]])

vjcitn/ontoProc documentation built on March 23, 2024, 7:23 a.m.