Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ResidueModification.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: Andreas Bertsch $
33 // --------------------------------------------------------------------------
34 //
35 
36 #ifndef OPENMS_CHEMISTRY_RESIDUEMODIFICATION_H
37 #define OPENMS_CHEMISTRY_RESIDUEMODIFICATION_H
38 
41 
42 #include <set>
43 
44 namespace OpenMS
45 {
46  // forward declaration
47  class Residue;
48 
77  class OPENMS_DLLAPI ResidueModification
78  {
79 public:
80 
97  {
98  ANYWHERE = 0,
99  C_TERM = 1,
100  N_TERM = 2,
101  PROTEIN_C_TERM = 3,
102  PROTEIN_N_TERM = 4,
103  NUMBER_OF_TERM_SPECIFICITY
104  };
105 
109  {
110  ARTIFACT = 0,
126  NUMBER_OF_SOURCE_CLASSIFICATIONS
127  };
129 
135 
137  ResidueModification(const ResidueModification& modification);
138 
140  virtual ~ResidueModification();
142 
146  ResidueModification& operator=(const ResidueModification& modification);
149 
153  void setId(const String& id);
155 
157  const String& getId() const;
158 
166  void setFullId(const String& full_id = "");
167 
169 
178  const String& getFullId() const;
179 
181  void setUniModRecordId(const Int& id);
182 
184  const Int& getUniModRecordId() const;
185 
187  const String getUniModAccession() const;
188 
190  void setPSIMODAccession(const String& id);
191 
193  const String& getPSIMODAccession() const;
194 
196  void setFullName(const String& full_name);
197 
199  const String& getFullName() const;
200 
202  void setName(const String& name);
203 
205  const String& getName() const;
206 
212  void setTermSpecificity(TermSpecificity term_spec);
213 
221  void setTermSpecificity(const String& name);
222 
224  TermSpecificity getTermSpecificity() const;
225 
232  String getTermSpecificityName(TermSpecificity term_spec = NUMBER_OF_TERM_SPECIFICITY) const;
233 
242  void setOrigin(char origin);
243 
245  char getOrigin() const;
246 
248  void setSourceClassification(const String& classification);
249 
251  void setSourceClassification(SourceClassification classification);
252 
254  SourceClassification getSourceClassification() const;
255 
257  String getSourceClassificationName(SourceClassification classification = NUMBER_OF_SOURCE_CLASSIFICATIONS) const;
258 
260  void setAverageMass(double mass);
261 
263  double getAverageMass() const;
264 
266  void setMonoMass(double mass);
267 
269  double getMonoMass() const;
270 
272  void setDiffAverageMass(double mass);
273 
275  double getDiffAverageMass() const;
276 
278  void setDiffMonoMass(double mass);
279 
281  double getDiffMonoMass() const;
282 
284  void setFormula(const String& composition);
285 
287  const String& getFormula() const;
288 
290  void setDiffFormula(const EmpiricalFormula& diff_formula);
291 
293  const EmpiricalFormula& getDiffFormula() const;
294 
296  void setSynonyms(const std::set<String>& synonyms);
297 
299  void addSynonym(const String& synonym);
300 
302  const std::set<String>& getSynonyms() const;
303 
305  void setNeutralLossDiffFormula(const EmpiricalFormula& loss);
306 
308  const EmpiricalFormula& getNeutralLossDiffFormula() const;
309 
311  void setNeutralLossMonoMass(double mono_mass);
312 
314  double getNeutralLossMonoMass() const;
315 
317  void setNeutralLossAverageMass(double average_mass);
318 
320  double getNeutralLossAverageMass() const;
322 
326  bool hasNeutralLoss() const;
328 
330  bool isUserDefined() const;
331 
333  bool operator==(const ResidueModification& modification) const;
334 
336  bool operator!=(const ResidueModification& modification) const;
338 
339 protected:
340 
342 
344 
346 
347  // The UniMod record id (an integer)
349 
351 
353 
355 
356  char origin_;
357 
359 
361 
362  double mono_mass_;
363 
365 
367 
369 
371 
372  std::set<String> synonyms_;
373 
375 
377 
379  };
380 }
381 
382 #endif // OPENMS_CHEMISTRY_RESIDUEMODIFICATION_H
EmpiricalFormula neutral_loss_diff_formula_
Definition: ResidueModification.h:374
String formula_
Definition: ResidueModification.h:368
Definition: ResidueModification.h:122
A more convenient string class.
Definition: String.h:57
double neutral_loss_mono_mass_
Definition: ResidueModification.h:376
Definition: ResidueModification.h:117
Definition: ResidueModification.h:115
Definition: ResidueModification.h:113
Definition: ResidueModification.h:124
Representation of a modification.
Definition: ResidueModification.h:77
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
char origin_
Definition: ResidueModification.h:356
Definition: ResidueModification.h:121
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: ResidueModification.h:114
std::set< String > synonyms_
Definition: ResidueModification.h:372
Representation of an empirical formula.
Definition: EmpiricalFormula.h:80
String name_
Definition: ResidueModification.h:352
Definition: ResidueModification.h:119
Definition: ResidueModification.h:116
Definition: ResidueModification.h:123
Definition: ResidueModification.h:118
Definition: ResidueModification.h:112
Definition: ResidueModification.h:111
double mono_mass_
Definition: ResidueModification.h:362
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:96
Int unimod_record_id_
Definition: ResidueModification.h:348
EmpiricalFormula diff_formula_
Definition: ResidueModification.h:370
TermSpecificity term_spec_
Definition: ResidueModification.h:354
Definition: ResidueModification.h:120
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
SourceClassification classification_
Definition: ResidueModification.h:358
String full_id_
Definition: ResidueModification.h:343
SourceClassification
Classification of the modification.
Definition: ResidueModification.h:108
String psi_mod_accession_
Definition: ResidueModification.h:345
String id_
Definition: ResidueModification.h:341
Definition: ResidueModification.h:125
double average_mass_
Definition: ResidueModification.h:360
int Int
Signed integer type.
Definition: Types.h:103
double diff_mono_mass_
Definition: ResidueModification.h:366
String full_name_
Definition: ResidueModification.h:350
double neutral_loss_average_mass_
Definition: ResidueModification.h:378
double diff_average_mass_
Definition: ResidueModification.h:364

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