Learn R Programming

bapred (version 1.1)

qunormtrain: Quantile normalization with ``documentation by value'' (Kostka & Spang, 2008)

Description

Performs quantile normalization for a covariate matrix and returns the normalized dataset together with information necessary for addon quantile normalization (Kostka & Spang, 2008) using qunormaddon.

Usage

qunormtrain(x)

Arguments

x

matrix. The covariate matrix. observations in rows, variables in columns.

Value

qunormtrain returns an object of class qunormtrain. An object of class "qunormtrain" is a list containing the following components:

xnorm

matrix of quantile normalized (training) data. Observations in rows, variables in columns.

mqnts

Vector of length ncol(xnorm). Averages of sorted values, with averages taken across observations.

Details

This function uses code from the off-CRAN package docval, version 1.0.

References

Kostka, D., Spang, R. (2008). Microarray based diagnosis profits from better documentation of gene expression signatures. PLoS Computational Biology 4(2):e22, <10.1371/journal.pcbi.0040022>.

Examples

Run this code
# NOT RUN {
data(autism)
Xtrain <- X[batch==1,]

params <- qunormtrain(x=Xtrain)

Xtrainnorm <- params$xnorm
# }

Run the code above in your browser using DataLab