Learn R Programming

Oscope (version 1.2.0)

AbsCor: Calculate absolute correlations among gene pairs

Description

Calculate absolute correlations among gene pairs

Usage

AbsCor(DataIn, method="pearson", diagNA=TRUE)

Arguments

DataIn
input data, gene-by-sample matrix
method
"pearson" or "spearman"; default is "pearson"
diagNA
whether replace diagonal values to NA's

Value

Output is a gene-by-gene matrix; the i, j th entry shows the absolute correlation of the ith and jth gene.

Examples

Run this code
AbsCor(matrix(rnorm(10),ncol=5))

Run the code above in your browser using DataLab