matchms.filtering.peak_processing.require_minimum_number_of_high_peaks module

matchms.filtering.peak_processing.require_minimum_number_of_high_peaks.require_minimum_number_of_high_peaks(spectrum_in: Spectrum, no_peaks: int = 5, intensity_percent: float = 2.0) Spectrum[source]
Returns None if the number of peaks with relative intensity

above or equal to intensity_percent is less than no_peaks.

Parameters:
  • spectrum_in – Input spectrum.

  • no_peaks – Minimum number of peaks allowed to have relative intensity above intensity_percent. Less peaks will return none. Default is 5.

  • intensity_percent – Minimum relative intensity (as a percentage between 0-100) for peaks that are searched. Default is 2