cfr_quantileNorm: Quantile Normalize Expression Values

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

A function to apply quantile normalization. It is build on preprocessCore::normalize.quantiles function, but keeps the dimnames as is.

Usage

1

Arguments

mat

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

Value

quantile normalized expression values as a matrix

Examples

1
2
3
4
5
6
7
myexp <- sapply( 1:10, function(i){
rnorm(n = 10000, mean = sample(1:3, 1), sd = sample(c(1, 3), 1))
})
myexp_qn <- cfr_quantileNorm(myexp)
par(mfrow = c(1,2))
boxplot(myexp, main = 'Before QN')
boxplot(myexp_qn, main = 'After QN')

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