get_term_frequencies: Get frequency of each term in a set of phenotypes

Description Usage Arguments Value See Also Examples

View source: R/sets.R

Description

Get frequency of each term in a set of phenotypes

Usage

1
get_term_frequencies(ontology, term_sets, patch_missing = FALSE)

Arguments

ontology

ontology_index object.

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 term_sets as if they had occurred once

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

get_term_info_content

Examples

1
2

oganm/ontologyIndexOgfork documentation built on Oct. 11, 2019, 2:53 a.m.