matchms.filtering.require_precursor_mz module

matchms.filtering.require_precursor_mz.require_precursor_mz(spectrum_in: Spectrum, minimum_accepted_mz: float = 10.0) Optional[Spectrum][source]

Returns None if there is no precursor_mz or if <= minimum_accepted_mz

Parameters
  • spectrum_in – Input spectrum.

  • minimum_accepted_mz – Set to minimum acceptable value for precursor m/z. Default is set to 10.0.