Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
MSPeak.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2017.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg $
32 // $Authors: Lukas Mueller, Markus Mueller $
33 // --------------------------------------------------------------------------
34 //
36 //
37 // PEAK DETECTION OF FOURIER TRANSFORME MS INSTRUMENT DATA
38 //
39 // written by Markus Mueller, markus.mueller@imsb.biol.ethz.ch
40 // and Lukas Mueller, Lukas.Mueller@imsb.biol.ethz.ch
41 // October 2005
42 //
43 // Ported to OpenMS by Florian Zeller, florian.zeller@bsse.ethz.ch
44 // December 2010
45 //
46 // Group of Prof. Ruedi Aebersold, IMSB, ETH Hoenggerberg, Zurich
47 //
48 
49 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H
50 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H
51 
52 #include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/SUPERHIRN/SuperHirnConfig.h>
53 
54 #include <string>
55 #include <vector>
56 #include <map>
57 
58 #include <OpenMS/CONCEPT/Types.h>
60 
61 namespace OpenMS
62 {
63 
64 //class CentroidPeak; // changed to include
65 
66  class SUPERHIRN_DLLAPI MSPeak
67  {
68 
70  // declaration of the private members:
71 
72  double precursorMZ;
73  double MZ;
74  float INTENSITY;
75  int SCAN;
76  double TR;
77  unsigned int CHRG;
78  unsigned int NRISOTOPES;
79  float SCORE;
80 
81  std::string extraMSPeakInfo;
82 
83  // child scan options:
85  int childScan;
86 
87  double SignalToNoise;
88  std::vector<CentroidPeak> ISOPEAKS;
89 
90 private:
91 
93  // declaration of the public members:
94 
95 public:
96 
97  // class destructor
98  ~MSPeak();
99 
100  // class constructor
101  MSPeak(int, double, float);
102  MSPeak();
103  MSPeak(int, double, float, unsigned int, unsigned int, float, std::vector<CentroidPeak>);
104  MSPeak(const MSPeak &);
105  MSPeak(const MSPeak *);
106 
108  // overload operators:
109  MSPeak & operator=(const MSPeak &);
110  MSPeak & operator<=(const MSPeak &);
111  MSPeak & operator>=(const MSPeak &);
112  MSPeak & operator<(const MSPeak &);
113  MSPeak & operator>(const MSPeak &);
114 
115  // show content of peak:
116  void show_info();
117 
118  // store the MS/MS scan number and activate this peak as precursor peak:
119  void activateAsPrecursorPeak(int);
120 
122  // check if the input mass matches one of the isotopic masses
123  bool checkIsotopeBelongingAndAdjustMass(double, double);
124 
126  // start here all the get / set
127  // function to access the
128  // variables of the class
129 
130  std::vector<CentroidPeak> & get_isotopic_peaks();
131 
132  std::vector<CentroidPeak>::iterator get_isotopic_peaks_start();
133 
134  std::vector<CentroidPeak>::iterator get_isotopic_peaks_end();
135 
136  void setExtraPeakInfo(std::string in);
137 
138  std::string getExtraPeakInfo();
139 
140  // precursor mass of the MS2 scan:
141  void setPrecursorMZ(double in);
142 
143  double getPrecursorMZ();
144 
145  // precursor mass charge state:
146  void setPrecursorCHRG(int in);
147 
148  int getPrecursorCHRG();
149 
150  // check if this peak has been determined as precursor:
151  bool getPrecursorActivation();
152 
153  int get_Chrg();
154 
155  void set_Chrg(int z);
156 
157  int get_Scan();
158 
159  float get_intensity();
160 
161  double get_MZ();
162 
163  int get_scan_number();
164 
165  void set_retention_time(double in);
166 
167  double get_retention_time();
168 
169  unsigned int get_charge_state();
170 
171  unsigned int get_nr_isotopes();
172 
173  float get_score();
174 
175  double getSignalToNoise();
176 
177  void setSignalToNoise(double in);
178 
179  };
180 
181 } // ns
182 
183 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H
double precursorMZ
Definition: MSPeak.h:72
double MZ
Definition: MSPeak.h:73
int SCAN
Definition: MSPeak.h:75
int childScan
Definition: MSPeak.h:85
double SignalToNoise
Definition: MSPeak.h:87
float INTENSITY
Definition: MSPeak.h:74
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
float SCORE
Definition: MSPeak.h:79
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
unsigned int NRISOTOPES
Definition: MSPeak.h:78
bool precursorMass
Definition: MSPeak.h:84
unsigned int CHRG
Definition: MSPeak.h:77
Definition: MSPeak.h:66
std::string extraMSPeakInfo
Definition: MSPeak.h:81
std::vector< CentroidPeak > ISOPEAKS
Definition: MSPeak.h:88
double TR
Definition: MSPeak.h:76

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:02 using doxygen 1.8.13