qNorm2: Quantile Normalisation 2

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/qNorm2.R

Description

A method of NMR spectral normalisation where the maximum intensities

Usage

1
qNorm2(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

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 returns a list with:

  1. The normalised X matrix based on the calculated dilf in the first element,

  2. The quantile normalised X matrix in the second element, and

  3. The dilf calculated in the third element.

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

1
2
3
data(X)
qNorm2(X)
cat(dilf_q2)

kylebario/unorm documentation built on Dec. 21, 2021, 8:45 a.m.