gcc.corfinal: get the final correlaiton and p-value of Gini method

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

View source: R/rsgcc.R

Description

Compare two correlations produced by GCC method for a gene pair, and choose one as the final output of GCC method.

Usage

1
	gcc.corfinal(gcccor)

Arguments

gcccor

a list output by cor.pair function for GCC method.

Details

If the p-value is "NA", the correlation with absolute maximum value is selected; otherwise, the correlation with lower p-value is chosen.

Value

gcc.fcor

the final correlation of GCC.

gcc.fpavlue

the final pvalue of correlation.

Author(s)

Chuang Ma, Xiangfeng Wang

See Also

onegcc, cor.pair.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
   data(rsgcc)
   x <- rnaseq[1:4,]

   #compute correlation between 1th and 4th genes
   #significance level of the computed correlation 
   #is calcuated with 200 permutation tests.
   corpair <- cor.pair(c(1,4), GEMatrix = x, rowORcol = "row", 
                       cormethod = "GCC", pernum = 200, 
                       sigmethod = "two.sided") 

   #get the final correlation and p-value of GCC method 
   gcc.corfinal(corpair)  

## End(Not run)

rsgcc documentation built on May 2, 2019, 9:25 a.m.