step_measure_peaks_deconvolve() creates a specification of a recipe step
that resolves overlapping peaks using curve fitting. This step requires
peaks to have been detected first using step_measure_peaks_detect().
Arguments
- recipe
A recipe object.
- model
Peak model to use: "gaussian" (symmetric), "emg" (exponentially modified Gaussian for tailing peaks), or "bigaussian" (asymmetric). Default is "gaussian".
- max_iter
Maximum iterations for optimization. Default is 100.
- tol
Convergence tolerance. Default is 1e-6.
- peaks_col
Name of the peaks column. Default is ".peaks".
- measures_col
Name of the measures column. Default is ".measures".
- role
Not used.
- trained
Logical indicating if the step has been trained.
- skip
Logical. Should the step be skipped when baking?
- id
Unique step identifier.
Value
An updated recipe with the new step added. The .peaks column
will be updated with deconvolved peak parameters and fitted areas.
Details
Peak deconvolution fits mathematical models to overlapping peaks to determine their individual contributions. This is essential for quantitative analysis when peaks are not baseline-resolved.
Peak Models:
gaussian: Symmetric Gaussian peak (3 params: height, center, width)emg: Exponentially Modified Gaussian (4 params, handles tailing)bigaussian: Bi-Gaussian (5 params, flexible asymmetry)
The optimization uses initial estimates from detected peak positions and refines them to minimize the residual sum of squares.
See also
Other measure-chromatography:
step_measure_mw_averages(),
step_measure_mw_distribution(),
step_measure_mw_fractions()