rformassspectrometry / Spectra

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

Let filterMzValues also remove selected peaks #209

Closed jorainer closed 2 years ago

jorainer commented 2 years ago

Thus far the filterMzValues function keeps the peaks matching the provided m/z value(s) in a spectrum, but it would be nice to also allow to remove them. Use case would be to remove known contaminants from a spectrum (@mar-garcia).

jorainer commented 2 years ago

@mar-garcia, this is implemented now in version 1.3.5 of Spectra. Closing the issue, feel free to re-open if needed.