scaling: Function to scale metabolomic spectral data.

Description Usage Arguments Details Value Author(s) References

View source: R/scaling.R

Description

This function provides the options of Pareto scaling, unit scaling or no scaling of metabolomic data.

Usage

1
scaling(Y, type = "none")

Arguments

Y

An N x p matrix of metabolomic spectra. Each row of Y is an observation's spectrum.

type

Default is "none" meaning the data are not altered. If "pareto", the data are Pareto scaled. If "unit", the data are unit scaled.

Details

Pareto scaling, frequently utilised in metabolomic analyses, scales data by dividing each variable by the square root of the standard deviation. Unit scaling divides each variable by the standard deviation so that each variable has variance equal to 1.

Value

The function returns the requested scaled version of the input matrix Y.

Author(s)

Nyamundanda Gift, Isobel Claire Gormley and Lorraine Brennan.

References

van den Berg, R.A., Hoefsloot, H.C.J, Westerhuis, J.A. and Smilde, A.K. and van der Werf, M.J. (2006) Centering, scaling, and transformations: improving the biological information content of metabolomics data. BMC Genomics, 7, 1, 142.

Nyamundanda G., Gormley, I.C. and Brennan, L. (2010) Probabilistic principal components analysis for metabolomic data. Technical report, University College Dublin.


MetabolAnalyze documentation built on May 30, 2017, 2:26 a.m.