Closed jorainer closed 3 months ago
@mar-garcia , can you please check the documentation of the function? just to ensure it's correct and describes the problem properly.
Not sure how I can check the documentation.... I've just checked what is written here: https://github.com/rformassspectrometry/Spectra/blob/adjust_precursor_mz/R/Spectra-estimatePrecursorMz.R
The only small detail I would add the specifcation "in the previous MS1 spectrum" in the following sentence:
Thus, for each fragment spectrum, this method identifies in the previous MS1 spectrum the peak with the highest intensity and an m/z value similar to the fragment spectrum's reported precursor m/z (given parameters tolerance
and ppm
).
that's perfect, thanks @mar-garcia !
estimatePrecursorMz
functions to estimate/adjust the reported precursor m/z for DDA spectra.This PR fixes issue #315 , i.e. for DDA data from Waters instruments, the reported precursor m/z value might not be correct because it is not being corrected through the lockmass calibration. Would also be good to get hold of some more (different) Waters DDA files to check.