expr_dist: Expression Distance.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

expr_dist calculates the pairwise distance of gene expression profiles.

Usage

1
expr_dist(gene1, gene2, profiles)

Arguments

gene1

Character, HGNC symbol of the first gene.

gene2

Character, HGNC sysmbol of the second gene

profiles

Matrix of expression profiles, generated by calling fetchData("GEOprofiles")

Details

Similarity between 2 expression profiles is calculated by taking the absolute value of the Spearman correlation. Spearman correlation is used because we do not care whether the correlation is linear. Absolute value ensures that both strong positive and negative correlations result in high similarity. Distance is then taken as 1 - similarity. Distance is returned as 1 (maximum possible) if the expression profile for either gene is unavailable.

Value

Numeric, distance score.

Author(s)

Rachel Silverstein (aut)

See Also

See fetchData for the format of expression profiles used by this function.

Examples

1
2
3
4
5
6
## Not run: 
# Find the distance between the expression profiles of BRCA1 and BRCA2
GEO <- fetchData("GEOprofiles")
expr_dist("BRCA1", "BRCA2", GEO)

## End(Not run)

hyginn/BCB420.2019.ESA documentation built on May 29, 2019, 1:23 p.m.