esmraldi.peakdetectionmeanspectrum¶
Module Contents¶
Classes¶
- class esmraldi.peakdetectionmeanspectrum.PeakDetectionMeanSpectrum(mzs, mean_spectrum, factor_prominence, step_ppm)¶
- widths_peak_mass_resolution(step)¶
Finds the widths of peaks (in number of samples) for each mz, using the mass resolution (step). The width of a peak in mz is expressed as step*mz. It is converted to a number of samples by computing the minimum number of points required to obtain such a width.
- find_peak_indices(widths)¶
- extract_peaks()¶
- not_indices(indices, length)¶
Compute the complementary of the indices in a range of size “length”
- fill_zeros_with_last(arr)¶
- align(reference_peaks, keep_mzs=False)¶