Generate Molecular Weight Distribution Curve
Source:R/mw-calculations.R
step_measure_mw_distribution.Rdstep_measure_mw_distribution() creates a specification of a recipe step
that generates molecular weight distribution curves from SEC/GPC data.
This step has been superseded by measure.sec::step_sec_mw_distribution().
For new code, we recommend using the measure.sec package which provides
more complete SEC/GPC analysis functionality.
Arguments
- recipe
A recipe object.
- measures
An optional character vector of measure column names.
- type
Type of distribution to generate:
"differential"(default): dW/d(log M) differential distribution"cumulative": Cumulative weight fraction distribution"both": Generate both distributions
- calibration
Calibration method for converting x-axis to log(MW). See
step_measure_mw_averages()for details.- n_points
Number of points in the output distribution. Default is 100. If
NULL, uses the original data resolution.- mw_range
Optional numeric vector
c(min, max)specifying the MW range for the output distribution. IfNULL, uses the range from data.- normalize
Logical. Should the differential distribution be normalized to integrate to 1? Default is
TRUE.- role
Role for generated columns. Default is
"predictor".- trained
Logical indicating if the step has been trained.
- skip
Logical. Should the step be skipped when baking?
- id
Unique step identifier.
Details
This step transforms the raw chromatogram into standard MW distribution representations:
Differential Distribution (dW/d(log M)): The weight fraction per unit log(MW). This representation is preferred because the area under the curve represents the weight fraction in that MW range.
Cumulative Distribution: The cumulative weight fraction from low to high MW. Values range from 0 to 1.
The output replaces the .measures column with the distribution data,
where location contains log10(MW) values and value contains the
distribution values.
See also
Other measure-chromatography:
step_measure_mw_averages(),
step_measure_mw_fractions(),
step_measure_peaks_deconvolve()