Learn R Programming

ontologyPlot (version 1.0)

remove_links: Remove terms which just link two other terms

Description

Remove terms which just link two other terms

Usage

remove_links(ontology, terms, hard = FALSE)

Arguments

ontology
ontology_index object
terms
Character vector of ontological terms
hard
Logical value indicating whether to remove alternative direct paths to leaf nodes.

Value

Character vector.

See Also

remove_uninformative_terms

Examples

Run this code
library(ontologyIndex)
data(hpo)
remove_links(hpo, c("HP:0001873"))

Run the code above in your browser using DataLab