remove_terms_with_less_than_n_occurrences: Remove terms with less than certain number of occurrences

Description Usage Arguments Value See Also Examples

View source: R/graphs.R

Description

Remove terms with less than certain number of occurrences

Usage

1
2
remove_terms_with_less_than_n_occurrences(ontology, term_sets, n,
  terms = unique(unlist(term_sets)))

Arguments

ontology

ontology_index object

term_sets

List of character vectors of ontological term IDs

n

Integer

terms

Character vector of ontological terms

Value

Character vector

See Also

n_most_frequent_terms

Examples

1
2
3
4
library(ontologyIndex)
data(hpo)
remove_terms_with_less_than_n_occurrences(hpo, 
term_sets=list("HP:0001873", "HP:0001902"), n=2)

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