trans_log2: Log2 Transformation

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

Log2 Transformation

Usage

1

Arguments

mat

a numeric matrix with the expression values, where columns are the samples and rows are probesets, transcripts, or genes.

Value

log2 transformed matrix

Examples

1
2
3
4
5
myexp <- sapply(1:10, function(i) rnbinom(10000, mu = 4, size = 1))
myexp_l2 <- trans_log2(myexp)
par(mfrow = c(1,2))
hist(myexp)
hist(myexp_l2)

mdonertas/hetAge documentation built on Jan. 2, 2020, 12:53 a.m.