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

View source: R/rsgcc.R

gcc.corfinalR Documentation

get the final correlaiton and p-value of Gini method

Description

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

Usage

	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


## 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)


cma2015/rsgcc documentation built on June 10, 2022, 11:29 a.m.