oktoberfest.data.Spectra.add_intensities_without_mapping
- Spectra.add_intensities_without_mapping(intensities, fragment_type)
Add predicted intensities and convert to sparse matrix.
This function takes a numpy array, containing intensities. The intensity array is expected to have the same shape as this object and will be added to the respective lazer without checking the order of fragment annotations.
- Parameters:
intensities (
ndarray) – intensity numpy array to add with shapes (n x m)fragment_type (
FragmentType) – the type of intensities to add. Can be FragmentType.RAW or FragmentType.PRED.