getLeavesFromTerm {ontoProc} | R Documentation |
obtain childless descendents of a term (including query)
getLeavesFromTerm(x, ont)
x |
a character(1) id element for ontology_index instance |
ont |
an ontology_index instance as defined in ontologyIndex package |
character vector of 'leaves' of ontology tree
ch = getChebiOnto() alldr = getLeavesFromTerm("CHEBI:23888", ch) head(ch$name[alldr[1:15]])