powered by
Remove terms with less than certain number of occurrences
remove_terms_with_less_than_n_occurrences( ontology, term_sets, n, terms = unique(unlist(term_sets)) )
Character vector
ontology_index object
ontology_index
List of character vectors of ontological term IDs
Integer
Character vector of ontological terms
n_most_frequent_terms
library(ontologyIndex) data(hpo) remove_terms_with_less_than_n_occurrences(hpo, term_sets=list("HP:0001873", "HP:0001902"), n=2)
Run the code above in your browser using DataLab