19#if !defined(ms_fragment_INCLUDED_)
20#define ms_fragment_INCLUDED_
30namespace matrix_science {
68 LABEL_FORMAT_TRADITIONAL = 0,
69 LABEL_FORMAT_PEPTIDE_VIEW = 1
87 const double massValue,
90 const int chargeState = 1,
91 const double matchedExptMass = 0,
92 const double matchedExptIntensity = 0);
97 const double massValue,
100 const int chargeState,
101 const double matchedExptMass = 0,
102 const double matchedExptIntensity = 0);
106 const double massValue,
107 const double nlValue,
109 const int chargeState = 1,
110 const double matchedExptMass = 0,
111 const double matchedExptIntensity = 0);
115 const char * seriesName,
116 const double massValue,
117 const double nlValue,
119 const int chargeState,
120 const double matchedExptMass = 0,
121 const double matchedExptIntensity = 0);
125 const double massValue,
126 const double nlValue,
127 const char * peptideStr,
130 const int chargeState = 1,
131 const double matchedExptMass = 0,
132 const double matchedExptIntensity = 0);
137 const double massValue,
138 const double nlValue,
139 const char * peptideStr,
142 const int chargeState,
143 const double matchedExptMass = 0,
144 const double matchedExptIntensity = 0);
148 const double massValue,
149 const double nlValue,
151 const int chargeState = 1,
152 const double matchedExptMass = 0,
153 const double matchedExptIntensity = 0);
157 const char residueName,
158 const double massValue,
159 const double nlValue,
161 const int chargeState,
162 const double matchedExptMass = 0,
163 const double matchedExptIntensity = 0);
167 const double nlValue,
168 const int chargeState,
169 const double matchedExptMass = 0,
170 const double matchedExptIntensity = 0);
173 bool isFromAlpha()
const;
176 bool isFromBeta()
const;
179 bool isRegular()
const;
182 bool isNTerminal()
const;
185 bool isCTerminal()
const;
188 bool isInternal()
const;
191 bool isImmonium()
const;
194 bool isPrecursorNL()
const;
197 double getMass()
const;
200 double getNeutralLoss()
const;
203 std::string getLabel(
const LABEL_FORMAT fmt = LABEL_FORMAT_TRADITIONAL)
const;
206 std::string getPeptideSubstring()
const;
209 std::string getSeriesName()
const;
212 int getColumn()
const;
215 int getStart()
const;
221 int getCharge()
const;
224 void clearMatchedIon();
227 void setMatchedIon(
const double mass,
const double intensity);
230 double getMatchedIonMass()
const;
233 double getMatchedIonIntensity()
const;
236 int getAllMatchedIons(std::vector<double> & masses, std::vector<double> & intensities)
const;
239 enum ION_TYPE {ION_TYPE_UNKNOWN,
243 ION_TYPE_PRECURSOR_NL};
244 enum ION_TERMINUS {ION_TERM_AMBIGUOUS,
247 ms_peptide::PSM psmComponent_;
250 std::string labelTraditional_;
251 std::string labelPeptideView_;
252 std::string peptideSubstring_;
258 ION_TERMINUS terminus_;
259 bool matchedValueSet_;
260 double matchedExptMass_;
261 double matchedExptIntensity_;
262 std::vector<double> matchedExptMasses_;
263 std::vector<double> matchedExptIntensities_;
266 void initRegularFragment(
const ms_peptide::PSM psmComponent,
268 const double massValue,
269 const double nlValue,
271 const int chargeState,
272 const double matchedExptMass,
273 const double matchedExptIntensity);
275 void initRegularFragment(
const ms_peptide::PSM psmComponent,
276 const char* seriesName,
277 const double massValue,
278 const double nlValue,
280 const int chargeState,
281 const double matchedExptMass,
282 const double matchedExptIntensity);
284 void initInternalFragment(
const ms_peptide::PSM psmComponent,
286 const double massValue,
287 const double nlValue,
288 const char* peptideStr,
291 const int chargeState,
292 const double matchedExptMass,
293 const double matchedExptIntensity);
295 void initImmoniumFragment(
const ms_peptide::PSM psmComponent,
296 const char residueName,
297 const double massValue,
298 const double nlValue,
300 const int chargeState,
301 const double matchedExptMass,
302 const double matchedExptIntensity);
Class representing a single peptide fragment.
Definition: ms_fragment.hpp:38
LABEL_FORMAT
Format of fragment labels returned by getLabel().
Definition: ms_fragment.hpp:67
PSM
Type of data to return from accessor methods.
Definition: ms_peptide.hpp:98