Learn R Programming

hpoPlot (version 2.2)

get.term.frequencies: 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(hpo.terms, hpo.phenotypes, patch.missing = FALSE)

Arguments

hpo.terms
R-Object representation of HPO
hpo.phenotypes
List of HPO term character vectors
patch.missing
Logical indicating whether to include all HPO even if they're not present in the hpo.phenotypes as if they had occurred once

Value

  • Numeric vector of information contents, named by corresponding HPO terms. Takes into account ancestors, in the sense that all ancestor terms implied by the phenotypes are considered 'on'

See Also

get.term.info.content

Examples

Run this code
data(hpo.terms)
get.term.frequencies(hpo.terms, list("HP:0001873"))

Run the code above in your browser using DataLab