OpenMS
SpectrumAddition.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h> // OPENMS_DLLAPI
13 
15 
16 namespace OpenMS
17 {
26  class OPENMS_DLLAPI SpectrumAddition
27  {
28 
29 public:
30 
33  double sampling_rate,
34  bool filter_zeros);
35 
36 
39  const RangeMobility& im_range,
40  double sampling_rate,
41  bool filter_zeros);
42 
45 
46 
48  static OpenMS::MSSpectrum addUpSpectra(const std::vector<MSSpectrum>& all_spectra,
49  double sampling_rate,
50  bool filter_zeros);
51 
52  // sorts a spectrumPtr object by mz
54  };
55 }
56 
57 
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
The SpectrumAddition is used to add up individual spectra.
Definition: SpectrumAddition.h:27
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
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
static OpenSwath::SpectrumPtr concatenateSpectra(const SpectrumSequence &all_spectra)
Concatenates a spectrum sequence into a single spectrum. Values are sorted by m/z.
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....
static void sortSpectrumByMZ(OpenSwath::Spectrum &)
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< OpenSwath::SpectrumPtr > SpectrumSequence
a vector of spectrum pointers that DIA scores can operate on, allows for clever integration of only t...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:20
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:276
Definition: RangeManager.h:463
The structure that captures the generation of a peak list (including the underlying acquisitions)
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:181