matchms.filtering.remove_peaks_around_precursor_mz module

matchms.filtering.remove_peaks_around_precursor_mz.remove_peaks_around_precursor_mz(spectrum_in: Spectrum, mz_tolerance: float = 17) Spectrum[source]
Remove peaks that are within mz_tolerance (in Da) of

the precursor mz, exlcuding the precursor peak.

Parameters
  • spectrum_in – Input spectrum.

  • mz_tolerance – Tolerance of mz values that are not allowed to lie within the precursor mz. Default is 17 Da.