compute_gene_cor: Compute for the genes the correlation of their expression...

View source: R/genes-meta-analyses.R

compute_gene_corR Documentation

Compute for the genes the correlation of their expression between two datasets across different tissues

Description

Both data.frames have to share the same number of dimensions. For meaningful correlation, the rows and the columns should be identical between the two datasets.

Usage

compute_gene_cor(DF1, DF2, method)

Arguments

DF1

numeric data.frame

DF2

numeric data.frame.

method

a character string indicating which correlation coefficient is to be computed. One of "pearson", "spearman", "kendall" or 'pearson_log2' (for 'pearson_log2' the data is first log2 transformed before the computation of the correlation values)

Value

a named vector that contains the correlation value of each gene (used as name)


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.