cali.Rd
Chemical shift calibration with a reference signal.
cali(X, ppm, type = c("tsp"))
X | num matrix, NMR data matrix with rows representing spectra and columns representing chemical shift position |
---|---|
ppm | num vector, matched to columns of X |
type | str or num. Str: Either 'tsp' or 'glucose' for urine or blood-derived spectra, respectively (see Details). Num: ppm range of max height signal that will be used to reference to zero |
num matrix X, calibrated NMR data matrix.
Spectral calibration to a selected chemical shift reference signal.
type='tsp'
: calibration to 0 ppm using the highest peak located in interval 0 +/- 0.20 ppm (Trimethylsilylpropanoic acid resonance)
Dona, A.C., et al. (2014) Precision high-throughput proton NMR spectroscopy of human urine, serum, and plasma for large-scale metabolic phenotyping. Analytical Chemistry. 86.19. 9887-94.
torben.kimhofer@murdoch.edu.au
read_in(path = system.file('extdata',package='concentr8r'), exp_type = list(exp=c("PROF_URINE_NOESY")), n_spec = 'multiple') plot(ppm, X[2,], type = 'l', col = 'red', main = 'NMR Spectra (Processed vs. Non Processed)', xlab = 'Chemical Shift (ppm)', ylab = 'Intensity', xlim = c(10,-1))