matchms.filtering.metadata_processing.require_precursor_below_mz module

matchms.filtering.metadata_processing.require_precursor_below_mz.require_precursor_below_mz(spectrum_in: Spectrum, max_mz: float = 1000) Spectrum[source]
Returns None if the precursor_mz of a spectrum is above

max_mz.

Parameters:
  • spectrum_in – Input spectrum.

  • max_mz – Maximum mz value for the precursor mz of a spectrum. All precursor mz values greater or equal to this will return none. Default is 1000.