Learn R Programming

hpoPlot (version 2.2)

get.term.info.content: Get information content of each term in a set of phenotypes

Description

Get information content of each term in a set of phenotypes

Usage

get.term.info.content(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'

Examples

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

Run the code above in your browser using DataLab