Closed jorainer closed 5 months ago
Commit https://github.com/sneumann/xcms/pull/712/commits/c8a27d59335b09506645a749173225b1900b4ffc in addition adapts (actually fixes) the featureArea
function that is used to extract the m/z and rt boundaries for each feature. This function is used for featureChromatograms
, gap-filling with ChromPeakAreaParam
and EIC-based feature grouping. The function was now also better documented, which results in a quite large number of changes.
thanks for merging @sneumann !
This PR adds the possibility to perform peak density-based correspondence using m/z-dependent bin sizes. The
PeakDensityParam
gains a parameterppm
with a default ofppm = 0
in which case the original approach is used that groups chrom peaks in equal(fixed)-sized bins along the m/z dimension. By settingppm
to a value larger than 0 m/z-dependent bin sizes will be used instead: the bins along m/z increase withppm
of the m/z value hence better modeling the m/z dependent measurement precision/error of e.g. TOF instruments.See also issue #711 for discussion and https://github.com/sneumann/xcms/issues/711#issuecomment-1893389759 for the consequence of such correspondence analysis.