Learn R Programming

ontologyIndex (version 2.12)

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(ontology, term_sets, patch_missing = FALSE)

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'

Arguments

ontology

ontology_index object.

term_sets

List of character vectors of ontological term IDs.

patch_missing

Logical indicating whether to include all ontology terms even if they're not present in the term_sets as if they had occurred once

Examples

Run this code
data(hpo)
get_term_info_content(hpo, list("HP:0001873"))

Run the code above in your browser using DataLab