scaling function

Function to scale metabolomic spectral data.

Function to scale metabolomic spectral data.

This function provides the options of Pareto scaling, unit scaling or no scaling of metabolomic data. 1.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.

Returns

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

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.

Author(s)

Nyamundanda Gift, Isobel Claire Gormley and Lorraine Brennan.

  • Maintainer: Claire Gormley
  • License: GPL-2
  • Last published: 2019-08-31

Useful links