get_term_freq: get_term_freq()

Description Usage Arguments Value Examples

Description

Function that gets the frequency of annotation of a specific term. That is the number of genes this term is associated to divided by the maximum term annotation.

Usage

1
get_term_freq(x, term)

Arguments

x

The GeneAnnotations class on which the method will run.

term

The term on which we want the annotation frequency.

Value

The term's annotations frequency

Examples

1
2
3
kegg <- TCGAome::load_kegg()
random_kegg_term = kegg@term2gene$Term[runif(1, max = length(kegg@term2gene$Term))]
get_term_freq(kegg, random_kegg_term)

priesgo/TCGAome documentation built on May 25, 2019, 11:26 a.m.