getpValue: 'getpValue' calculate p-Value

Description Usage Arguments Value Examples

Description

getpValue Calculate the p value of a gene pair correlation on a simulated random gene pair coexpression corelation distribution.

Usage

1
getpValue(simulationCorr, myGenePairCorr)

Arguments

simulationCorr

(double vector) a vector of correlation grnerate by randomly simulate N gene pairs and calculate correlation.

myGenePairCorr

(double) gene pair coexpression correlation that we are interested in

Value

(double) p-Value of how differentially coexpressed the gene pair is over the random coexpression correlation

Examples

1
2
3
4
5
6
## Not run: 
simulationCorr <- c(-0.5, -0.4, -0.3, -0.2, -0.1, 0, 0.1, 0.2, 0.3, 0.4, 0.5)
myGenePairCorr <- 0.1
getpValue(simulationCorr, myGenePairCorr) # 0.7630246

## End(Not run)

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