oktoberfest.data.Spectra.add_mzs

Spectra.add_mzs(mzs, fragment_type)

Add mass to charge ratios.

This function adds a matrix of mass to charge ratios of shape (PSMs x fragment ions) to this data object.

Parameters:
  • mzs (ndarray) – the mass to charge ratio array

  • fragment_type (FragmentType) – the type of mzs to add. Currently, only FragmentType.MZ is supported.