normExp: Normalized expression transformation

Description Usage Arguments Value Examples

View source: R/normExp.R

Description

Normalize the expression data of any type of experiment by columns, applying log(x + 1)/log(2).

Usage

1
normExp(tab)

Arguments

tab

A matrix or dataframe of expression data (i.e. TPM, counts, FPKM).

Value

Returns a table with normalized values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# loading a simulated counts data
data('simCounts')

# getting the TPM matrix from counts
tpm <- apply(simCounts, 2, function(x) {
            (1e+06 * x)/sum(x)
            })

# normalizing TPM data
norm <- normExp(tpm)

CeTF documentation built on Nov. 25, 2020, 2 a.m.