q2Norm: Quantile/PQN Normalisation

View source: R/q2Norm.R

q2NormR Documentation

Quantile/PQN Normalisation

Description

A method of NMR spectral normalisation where the maximum intensities

Usage

q2Norm(X, uv_used = "mode")

Arguments

X

A numerical matrix containing the NMR spectra to be normalised. Rows should be the spectra and columns being the chemical shift variables. Cannot normalise only as single spectrum, X must be a matrix.

uv_used

The univariate measure used to calculate the dilution coefficient. mode or median are accepted

Details

The method orders spectral intensities smallest to largest and finds the mean of each 'quantile' (i.e., the mean of the maximum intensities, the mean of the 2nd maximum intensities). These means are then reassigned back to the ppm that first housed the maximum, 2nd maximum, etc., and PQN is performed on each spectrum using its quantile normalised self. The calculated dilution factor is then used to normalise the original spectrum to reduce manipulation of peak shapes.

Value

This function assigns the normalised X argument (as X_q2) and the calculated dilution factors (as dilf_q2) to the global environment.

Author(s)

kylebario1@gmail.com

See Also

The methods paper that describes quantile normalisation: https://doi.org/10.1007/s11306-011-0350-z

Other Reference-Based: hmNorm(), pqNorm(), xfNorm()

Examples

data(X)
q2Norm(X, uv_used = 'mode')
cat(dilf_q2)

kylebario/concentr8r documentation built on Nov. 9, 2022, 12:47 a.m.