get_term_frequencies {ontologyIndex} | R Documentation |
Get frequency of each term in a set of phenotypes
Description
Get frequency of each term in a set of phenotypes
Usage
get_term_frequencies(ontology, term_sets, patch_missing = FALSE)
Arguments
ontology |
|
term_sets |
List of character vectors of ontological term IDs. |
patch_missing |
Logical indicating whether to include whole ontology even if they're not present in the |
Value
Numeric vector of information contents, named by corresponding terms. Takes into account ancestors, in the sense that all ancestor terms implied by the phenotypes are considered 'on'
See Also
Examples
data(hpo)
get_term_frequencies(hpo, list("HP:0001873"))
[Package ontologyIndex version 2.12 Index]