matchms.filtering.add_losses module

matchms.filtering.add_losses.add_losses(spectrum_in: Spectrum, loss_mz_from=0.0, loss_mz_to=1000.0) Spectrum[source]

Derive losses based on precursor mass.

Parameters
  • spectrum_in – Input spectrum.

  • loss_mz_from – Minimum allowed m/z value for losses. Default is 0.0.

  • loss_mz_to – Maximum allowed m/z value for losses. Default is 1000.0.