Metabodecon introduces a set of classes to highlight the presence of
certain elements in corresponding objects. The order of elements may
vary between different versions of Metabodecon, thus elements should
always be accessed by name, for example, using x$si
or
x[["cs"]]
.
The classes itself are described in section Class Overview. The elements associated with a class are described in section Elements. A graphical visualization of the classes and their corresponding functions is given in figure Metabodecon Workflow.
Class Overview
spectrum
Represents one NMR spectrum. Objects of class ‘spectrum’ have at least elements 1-3 from section Elements v1.2+.
decon0
Represents one deconvoluted NMR spectrum stored in the old MetaboDecon1D() format. Objects of class ‘decon0’ have at least elements 1-18 from section Elements v0.2+.
decon1
Represents one deconvoluted NMR spectrum stored in the backwards compatible generate_lorentz_curves() format. Objects of class ‘decon1’ have all elements from section Elements v0.2+.
decon2
Represents one deconvoluted NMR spectrum stored in the new deconvolute()
format. Objects of class ‘decon2’ have all elements from section Elements v1.2+ with elements
sit$al
and lcpar$x0al
set to
NULL
.
align
Represents one deconvoluted NMR spectrum for which the individual peaks have been aligned using [align()]. Objects of class ‘align’ have all elements from section Elements v1.2+.
Collections
The classes mentioned above represent individual objects, such as a single spectrum, deconvolution, or alignment. However, it is often useful to describe collections of these objects, such as a list of spectra or deconvolutions. Therefore, for each individual class, a corresponding “collection” class is provided. These collection classes are named: spectra, decons0, decons1, decons2, and aligns.
Elements
Elements v1.2+
-
cs
: Vector of chemical shifts (CS) in parts per pillion (ppm). Must be of the same length assi
. -
si
: Vector of signal intensities (SI) in arbitrary units (au). Elementsi[i]
is the signal intensity measured at chemical shiftcs[i]
, i.e.si
must be of the same length ascs
. -
meta
: List of additional metadata about the spectrum, e.g.:-
name
: The name of the spectrum, e.g."Blood 1"
or"Urine 2"
. -
path
: The path of the file/folder containing the spectrum data. E.g."example_datasets/jcampdx/urine/urine_1.dx"
or"example_datasets/bruker/urine/urine"
. -
type
: The type of experiment, e.g."H1 CPMG"
or"H1 NOESY"
. -
fq
: Vector of signal frequencies in Hertz (Hz). Must be of the same length assi
andcs
. -
mfs
: Magnetic field strength in Tesla, e.g.14.1
. -
simpar
: True Lorentz Curve parameters. List with elementsA
,lambda
andx0
. For details see elementlcpar
. Only available if a spectrum has been simulated.
-
-
args
: List of deconvolution parameters:-
nfit
: The number of fitting iterations. -
smopts
: The smoothing parameters used for the deconvolution. -
delta
: The threshold used for peak filtering. -
sfr
: Borders of the signal free region in ppm. -
wshw
: Water signal half width in ppm.
-
-
sit
: Dataframe of Signal Intensities (SI) after applying various transformations:-
wsrm
: SIs after Water Signal Removal (WSRM), -
nvrm
: SIs after WSRM and Negative Value Removal (NVRM). -
sm
: SIs after WSRM, NVRM and smoothing. -
sup
: SIs as superposition of Lorentz Curves. -
al
: SIs after alignment.
-
-
peak
: Dataframe of peak triplets found during peak selection:-
center
: Indices of peak centers. -
left
: Indices of left borders. -
right
: Indices of right peak borders.
-
-
lcpar
: Dataframe of Lorentz Curve parameters after parameter approximation:-
A
: Amplitude parameter. -
lambda
: Halfwidth parameter. -
x0
: Center parameter. -
x0al
: Center parameter after the spectrum has been aligned.
-
-
mse
: List of Mean squared error (MSE):-
raw
: MSE betweensi
andsit$sup
-
norm
: MSE betweensi
andsit$sup
, divided bysum(sit$sup)
-
sm
: MSE betweensit$sm
andsit$sup
-
smnorm
: MSE betweensit$sm
andsit$sup
, divided bysum(sit$sup)
. Equalsmse_normed
in Elements v0.2+.
-
Elements v0.2+
-
filename
: Name of the analyzed spectrum. -
x_values
: Scaled datapoint numbers (SDP). Datapoints are numbered in descending order going from N-1 to 0, where N equals the total amount of data points. Scaled data point numbers are obtained by dividing these numbers by the scale factor of the x-axis. I.e., for a spectrum with 131072 datapoints and a scale factor of 1000, the first scale datapoint has value 131.071 and the last one has value 0. -
x_values_ppm
: The chemical shift of each datapoint in ppm (parts per million). -
y_values
: The scaled signal intensity (SSI) of each datapoint. Obtained by reading the raw intensity values from the provideddata_path
as integers and dividing them scale factor of the y-axis. -
spectrum_superposition
: Scaled signal intensity obtained by calculating the sum of all estimated Lorentz Curves for each data point. -
mse_normed
: where is the normalized, smoothed signal intensity of data point i and is the normalized superposition of Lorentz Curves at data point i. Normalized in this context means that the vectors were scaled so the sum over all data points equals 1. -
peak_triplets_middle
: Chemical shift of peak centers in ppm. -
peak_triplets_left
: Chemical shift of left peak borders in ppm. -
peak_triplets_right
: Chemical shift of right peak borders in ppm. -
index_peak_triplets_middle
: Datapoint numbers of peak centers. -
index_peak_triplets_left
: Datapoint numbers of left peak borders. -
index_peak_triplets_right
: Datapoint numbers of right peak borders. -
integrals
: Integrals of the Lorentz Curves. -
signal_free_region
: Borders of the signal free region of the spectrum in scaled datapoint numbers. Left of the first element and right of the second element no signals are expected. Only available ifMetaboDecon1D()
was called with more than one spectra as input. -
range_water_signal_ppm
: Half width of the water signal in ppm. Potential signals in this region are ignored. Only available ifMetaboDecon1D()
was called with more than one spectra as input. -
A
: Amplitude parameter of the Lorentz Curves. Provided as negative number to maintain backwards compatibility with MetaboDecon1D. The area under the Lorentz Curve is calculated as . -
lambda
: Half width of the Lorentz Curves in scaled data points. Provided as negative value to maintain backwards compatibility with MetaboDecon1D. Example: a value of -0.00525 corresponds to 5.25 data points. With a spectral width of 12019 Hz and 131072 data points this corresponds to a halfwidth at half height of approx. 0.48 Hz. The corresponding calculation is: (12019 Hz / 131071 dp) * 5.25 dp. -
x_0
: Center of the Lorentz Curves in scaled data points. -
y_values_raw
: The raw signal intensity of each datapoint -
x_values_hz
: The frequency of each datapoint in Hz -
mse_normed_raw
: Normalized mean squared error when comparing the raw signal intensities with the superposition of Lorentz Curves. -
x_0_hz
: Center of the Lorentz Curves in Hz. -
x_0_dp
: Center of the Lorentz Curves in data points. -
x_0_ppm
: Center of the Lorentz Curves in ppm. -
A_hz
: Amplitude parameter of the Lorentz Curves in Hz. -
A_dp
: Amplitude parameter of the Lorentz Curves in data points. -
A_ppm
: Amplitude parameter of the Lorentz Curves in ppm. -
lambda_hz
: Half width of the Lorentz Curves in Hz. -
lambda_dp
: Half width of the Lorentz Curves in data points. -
lambda_ppm
: Half width of the Lorentz Curves in ppm.