CorMat: Matrix Correlations, all to all (CorMat)

View source: R/CorMat.R

CorMatR Documentation

Matrix Correlations, all to all (CorMat)

Description

Starting with two matrices with compatible row.names (corresponding to *samples*) and different column.names (corresponding to *measurements*) i.e. mat1 = measures of cognition mat2 = RNAseq or Tau measurements CorMat will sync the rows between matrices reports surviving rows and correlates every column in mat1 with every column in mat2 Returns a flat data frame with all comparisons, rvals, and pvals(ranked).

Usage

CorMat(x, y, method = "spearman", adj.meth = "BH")

Arguments

x

matrix 1

y

matrix 2

method

"pearson" (default) or "spearman" (rank order correlation)

adj.meth

Method to use for multiple comparisons correction default = "BH" for Benjamini Hochberg, other options are, "holm", "hochberg", "hommel", "bonferroni", "BY", "fdr", "none" uses stats::p.adjust function


genejockey33000/typGumbo documentation built on July 20, 2023, 11:45 p.m.