rformassspectrometry / Spectra

Low level infrastructure to handle MS spectra
https://rformassspectrometry.github.io/Spectra/
34 stars 24 forks source link

filterPrecursorMz with multiple precursor m/z values #230

Open jorainer opened 2 years ago

jorainer commented 2 years ago

At present filterPrecursorMz expects a range of m/z values and keeps all spectra with a precursor m/z within that range. I'm wondering if it would not also be nice to have the possibility to filter spectra matching any of provided precursor m/z (see also on https://github.com/rformassspectrometry/SpectraQL/issues/1). So, what I would suggest is the following:

This is somewhat similar to the filterMzRange and filterMzValue methods we have already implemented. Any thoughts on that @sgibb and @lgatto ?

jorainer commented 2 years ago

CC @andreavicini