CycloBranch
cPeak.h
Go to the documentation of this file.
1
7#ifndef _CPEAK_H
8#define _CPEAK_H
9
10#include <string>
11#include <fstream>
12#include "core/cFragmentIons.h"
14
15
16using namespace std;
17
18
22struct cPeak {
23
28
33
38
42 double mzratio;
43
44
49
50
55
56
61
62
67
68
72 double matchedmz;
73
74
79
80
85
86
90 double matchedppm;
91
92
97
98
103
104
109
110
115
116
121
122
127
128
133
134
139
140
145
146
151
152
157
158
163
164
168 bool decoy;
169
170
175
176
180 cPeak();
181
182
187 cPeak(const cPeak& peak);
188
189
194 cPeak& operator=(const cPeak& peak);
195
196
200 void clear();
201
202
207 bool empty();
208
209
214 void store(ofstream& os);
215
216
221 void load(ifstream& is);
222
223
229 bool equals(cPeak& secondpeak);
230
231};
232
233
234#endif
Basic definitions of fragment ions occurring in the mass spectra.
eFragmentIonType
The types of supported fragment ions.
Definition: cFragmentIons.h:944
The representation of a summary formula.
The representation of a summary formula.
Definition: cSummaryFormula.h:59
A structure representing a peak in a mass spectrum.
Definition: cPeak.h:22
double mzratio
MZ ratio.
Definition: cPeak.h:42
int compoundid
Identifier of a compound.
Definition: cPeak.h:144
double matchedmz
m/z ratio when the peak was matched with an experimental peak.
Definition: cPeak.h:72
int groupid
Identifier of a group of peaks.
Definition: cPeak.h:138
double absoluteintensity
Absolute intensity.
Definition: cPeak.h:54
void load(ifstream &is)
Load the structure from an input stream.
Definition: cPeak.cpp:114
bool removeme
True if the peak should be removed.
Definition: cPeak.h:156
cPeak()
The constructor.
Definition: cPeak.cpp:4
cSummaryFormula formula
Summary formlula.
Definition: cPeak.h:27
void clear()
Clear the structure.
Definition: cPeak.cpp:47
int neutrallosstype
Neutral loss type corresponding to the peak.
Definition: cPeak.h:102
int isotopeformulaid
Id of isotope summary formula.
Definition: cPeak.h:37
int matchedid
An order of an experimental peak which has been matched with a theoretical peak.
Definition: cPeak.h:114
bool isotope
True if the peak is an isotope peak.
Definition: cPeak.h:150
int charge
A charge of the peak.
Definition: cPeak.h:120
double relativeintensity
Relative ntensity.
Definition: cPeak.h:48
double matchedabsoluteintensity
Absolute intensity when the peak was matched with an experimental peak.
Definition: cPeak.h:84
string description
Description of a peak.
Definition: cPeak.h:60
int orderid
An order id of a peak in a peaklist.
Definition: cPeak.h:174
double matchedppm
An error in ppm when the peak was matched with an experimental peak.
Definition: cPeak.h:90
bool equals(cPeak &secondpeak)
Check if the object equals to another object.
Definition: cPeak.cpp:144
int rotationid
Id of a rotation of a cyclic peptide or a permutation of a branched peptide which has been matched.
Definition: cPeak.h:126
bool empty()
Test whether the structure is empty.
Definition: cPeak.cpp:78
bool decoy
True if the peak corresponds to a decoy compound.
Definition: cPeak.h:168
int descriptionid
Description id of a peak.
Definition: cPeak.h:66
cPeak & operator=(const cPeak &peak)
Overloaded operator=.
Definition: cPeak.cpp:14
eFragmentIonType iontype
Ion type corresponding to the peak.
Definition: cPeak.h:96
double matchedrelativeintensity
Relative intensity when the peak was matched with an experimental peak.
Definition: cPeak.h:78
bool scrambled
True if the peak corresponds to a scrambled fragment ion.
Definition: cPeak.h:162
int seriesid
An order of a peak in a series (e.g., B_5 in a B series).
Definition: cPeak.h:132
string isotopeformula
Isotope summary formula.
Definition: cPeak.h:32
int matched
Number of matches of an experimental peak (when the peak is compared to a theoretical spectrum).
Definition: cPeak.h:108
void store(ofstream &os)
Store the structure into an output stream.
Definition: cPeak.cpp:84