get_binary_similarity: get_binary_similarity()

Description Usage Arguments Value Examples

Description

Function that gets the binary functional similarity between two terms. That is a measure of the shared terms in the annotations resources.

Usage

1
get_binary_similarity(x, term1, term2)

Arguments

x

The GeneAnnotations class on which the method will run.

term1

The first term on which to calculate the functional similarity.

term2

The second term on which to calculate the functional similarity.

Value

The binary functional similarity between term1 and term2

Examples

1
2
3
4
kegg <- TCGAome::load_kegg()
random_kegg_term1 = kegg@term2gene$Term[runif(1, max = length(kegg@term2gene$Term))]
random_kegg_term2 = kegg@term2gene$Term[runif(1, max = length(kegg@term2gene$Term))]
get_binary_similarity(kegg, random_kegg_term1, random_kegg_term2)

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