emzed.ms2.merge_spectra module¶
- emzed.ms2.merge_spectra.merge_spectra(spectra, mz_binning_width, is_ppm=False)[source]¶
merges spectra.
- Parameters:
spectra – list of Spectrum objects or PeakMap or PeakMap.spectra attribute, must be of same ms leve..
mz_binning_width – tolerance parameter for matching m/z values
is_ppm – indicates if mz_binning_width is in Da or ppm.
- Returns:
merged spectrum, return None if spectra is empty.