NMRphasing: NMRphasing

NMRphasingR Documentation

NMRphasing

Description

Phase error correction wrap up function

Usage

NMRphasing(
  specDatIn,
  absorptionOnly = FALSE,
  method = c("NLS", "MPC_DANM", "MPC_EMP", "MPC_AAM", "MPC_DSM", "MPC_ADSM", "SPC_DANM",
    "SPC_EMP", "SPC_AAM", "SPC_DSM", "SPC_ADSM"),
  withBC = TRUE
)

Arguments

specDatIn

Input spectrum data, which can be one of the four formats: a vector of absorption spectrum; a complex vector; a data matrix or a data frame with two columns of spectrum data, which 1st column is for absorption spectrum, and 2nd column is for dispersion spectrum

absorptionOnly

A logical variable to tell us if specDatIn is a a vector of absorption specrtrum, default is false

method

One of phase correction and baseline correction methods. There are eleven available choices, which are "NLS", "MPC_DAOM", "MPC_EMP", "MPC_AAM", "MPC_DSM", "MPC_ADSM", "SPC_DAOM", "SPC_EMP", "SPC_AAM", "SPC_DSM", "SPC_ADSM", with "NLS", non-linear shrinkage as default.

withBC

A logical parameter that enables/disables baseline correction after baseline correction

Details

This is a wrap function to process phase error correction and baseline correction with eleven different choices.

Value

A numeric vector of phase corrected absorption spectrum

Author(s)

Aixiang Jiang

References

Jiang, A. (2024). Phase Error Correction in Magnetic Resonance: A Review of Models, Optimization Functions, and Optimizers in Traditional Statistics and Neural Networks. Preprints. https://doi.org/10.20944/preprints202409.2252.v1

Binczyk F, Tarnawski R, Polanska J (2015) Strategies for optimizing the phase correction algorithms in Nuclear Magnetic Resonance spectroscopy. Biomed Eng Online 14 Suppl 2:S5.

Chen L, Weng Z, Goh L, Garland M (2002) An efficient algorithm for automatic phase correction of NMR spectra based on entropy minimization. J Magn Reson 158:164–168.

de Brouwer H (2009) Evaluation of algorithms for automated phase correction of NMR spectra. J Magn Reson 201:230–238.

Džakula Ž (2000) Phase Angle Measurement from Peak Areas (PAMPAS). J Magn Reson 146:20–32.

Ernst RR (1969) Numerical Hilbert transform and automatic phase correction in magnetic resonance spectroscopy. J Magn Reson 1969 1:7–26.

Liland KH, Almøy T, Mevik B (2010), Optimal Choice of Baseline Correction for Multivariate Calibration of Spectra, Applied Spectroscopy 64, pp. 1007-1016.

Examples

data("fdat")
nls_phased <- NMRphasing(specDatIn = fdat$frequency_domain, method = "NLS")

NMRphasing documentation built on Oct. 13, 2024, 1:07 a.m.