expression_reshape: Reshape data for WGCNA

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Reshap an expression matrix to the format required by WGCNA

Usage

1
expression_reshape(mat, log = FALSE, zero_neg = FALSE)

Arguments

mat

A numeric expression matrix

log

A logical (default, FALSE) to take the log matrix

zero_neg

A logical (default, FALSE) to zero all negative values

Value

A list with one data.frame item, data contains the transposed matrix. This is the genes in column and samples in rows

Examples

1
2
3
4
5
6
library(Biobase)
data(sample.ExpressionSet)

mat <- exprs(sample.ExpressionSet)

expression_reshape(mat)

BCMSLab/rkip documentation built on May 17, 2019, 2:14 a.m.