Skip to contents

Calculate correlations or associations between gene and brain data

Usage

corr_brain_gene(
  gene_data,
  brain_data,
  method = c("pearson", "spearman", "pls1c", "pls1w"),
  r2z = TRUE
)

Arguments

gene_data

A data frame or matrix of gene expression data.

brain_data

A data frame or matrix of brain data.

method

The method to be used for correlation/association. Can be 'pearson', 'spearman', 'pls1c', 'pls1w', or a custom function provided by the user.

r2z

Logical, indicating whether to convert correlation coefficients to Fisher's Z scores. Only applicable to 'pearson'.

Value

A matrix with correlation or association coefficients between gene data and brain data.