gelMatrix: Obtain a correlation/p-value matrix

View source: R/gelMatrix.R

gelMatrixR Documentation

Obtain a correlation/p-value matrix

Description

Generate a matrix of p-values ("orig"), p-values forced to a uniform distribution ("unif"), or correlations ("cor").

Usage

gelMatrix(x, phen = NULL, z = NULL, squared = FALSE, partial = FALSE, output = "unif")

Arguments

x

A matrix of dimensions (n_features, n_samples)

phen

A phenotypic trait matrix of dimensions (n_features, n_samples)

z

A covariate matrix of dimensions (n_cov, n_smaples)

squared

Square correlations to ignore their sign

partial

Generate a partial correlation matrix

output

The type of matrix to be calculated ("unif", "orig", "cor")

Value

A matrix of dimensions (n_phen + n_feat, n_phen + n_feat)

Author(s)

Anooj Arkatkar

Examples

data(foldChange)
gm <- gelMatrix(foldChange)

aarkatkar/gelClust documentation built on May 6, 2022, 12:24 a.m.