powered by
Remove terms which just link two other terms together in a subontology
remove_links(ontology, terms, hard = FALSE)
Character vector.
ontology_index object
ontology_index
Character vector of ontological terms
Logical value determining whether to multiple edges to leaf terms are kept - `hard=FALSE`, or removed - `hard=TRUE`.
`hard=FALSE`
`hard=TRUE`
remove_uninformative_terms
library(ontologyIndex) data(hpo) remove_links(hpo, c("HP:0001873","HP:0001872","HP:0011873","HP:0011877"))
Run the code above in your browser using DataLab