remove_links: Remove terms which just link two other terms together in a...

Description Usage Arguments Value See Also Examples

View source: R/graphs.R

Description

Remove terms which just link two other terms together in a subontology

Usage

1
remove_links(ontology, terms, hard = FALSE)

Arguments

ontology

ontology_index object

terms

Character vector of ontological terms

hard

Logical value determining whether to multiple edges to leaf terms are kept - `hard=FALSE`, or removed - `hard=TRUE`.

Value

Character vector.

See Also

remove_uninformative_terms

Examples

1
2
3
library(ontologyIndex)
data(hpo)
remove_links(hpo, c("HP:0001873","HP:0001872","HP:0011873","HP:0011877"))

Example output

[1] "HP:0001873" "HP:0001872" "HP:0011877"

ontologyPlot documentation built on Feb. 10, 2021, 5:06 p.m.