OpenMS
SpectrumAddition Class Reference

The SpectrumAddition is used to add up individual spectra. More...

#include <OpenMS/ANALYSIS/OPENSWATH/SpectrumAddition.h>

Static Public Member Functions

static OpenSwath::SpectrumPtr addUpSpectra (const SpectrumSequence &all_spectra, double sampling_rate, bool filter_zeros)
 adds up a list of Spectra by resampling them and then addition of intensities More...
 
static OpenSwath::SpectrumPtr addUpSpectra (const SpectrumSequence &all_spectra, const RangeMobility &im_range, double sampling_rate, bool filter_zeros)
 adds up a list of ion mobility enhacned Spectra by resampling them and then addition of intensities. Currently this involves filtering to the desired IM extracion window and then performing addition across m/z and intensity. More...
 
static OpenSwath::SpectrumPtr concatenateSpectra (const SpectrumSequence &all_spectra)
 Concatenates a spectrum sequence into a single spectrum. Values are sorted by m/z. More...
 
static OpenMS::MSSpectrum addUpSpectra (const std::vector< MSSpectrum > &all_spectra, double sampling_rate, bool filter_zeros)
 adds up a list of Spectra by resampling them and then addition of intensities More...
 
static void sortSpectrumByMZ (OpenSwath::Spectrum &)
 

Detailed Description

The SpectrumAddition is used to add up individual spectra.

It uses the given sampling rate to resample the spectra in m/z domain and then add them up. This may lead to a certain inaccuracy, especially if a inappropriate resampling rate is chosen.

Member Function Documentation

◆ addUpSpectra() [1/3]

static OpenSwath::SpectrumPtr addUpSpectra ( const SpectrumSequence all_spectra,
const RangeMobility im_range,
double  sampling_rate,
bool  filter_zeros 
)
static

adds up a list of ion mobility enhacned Spectra by resampling them and then addition of intensities. Currently this involves filtering to the desired IM extracion window and then performing addition across m/z and intensity.

◆ addUpSpectra() [2/3]

static OpenSwath::SpectrumPtr addUpSpectra ( const SpectrumSequence all_spectra,
double  sampling_rate,
bool  filter_zeros 
)
static

adds up a list of Spectra by resampling them and then addition of intensities

◆ addUpSpectra() [3/3]

static OpenMS::MSSpectrum addUpSpectra ( const std::vector< MSSpectrum > &  all_spectra,
double  sampling_rate,
bool  filter_zeros 
)
static

adds up a list of Spectra by resampling them and then addition of intensities

◆ concatenateSpectra()

static OpenSwath::SpectrumPtr concatenateSpectra ( const SpectrumSequence all_spectra)
static

Concatenates a spectrum sequence into a single spectrum. Values are sorted by m/z.

◆ sortSpectrumByMZ()

static void sortSpectrumByMZ ( OpenSwath::Spectrum )
static