Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
TargetedExperimentHelper.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 #pragma once
36 
38 
40 #include <OpenMS/CONCEPT/Types.h>
42 #include <OpenMS/CONCEPT/Macros.h>
43 
45 #include <OpenMS/METADATA/CVTerm.h>
49 
50 #include <boost/numeric/conversion/cast.hpp>
51 
52 namespace OpenMS
53 {
60  namespace TargetedExperimentHelper
61  {
62 
63  struct Configuration :
64  public CVTermList
65  {
68  std::vector<CVTermList> validations;
69 
71  {
72  if (this != &rhs)
73  {
78  }
79  return *this;
80  }
81 
82  };
83 
84  struct CV
85  {
86  CV(const String & new_id, const String & new_fullname, const String & new_version, const String & new_URI) :
87  id(new_id),
88  fullname(new_fullname),
89  version(new_version),
90  URI(new_URI)
91  {
92 
93  }
94 
99 
100  bool operator==(const CV & cv) const
101  {
102  return id == cv.id &&
103  fullname == cv.fullname &&
104  version == cv.version &&
105  URI == cv.URI;
106  }
107 
108  };
109 
110  struct Protein :
111  public CVTermList
112  {
114  CVTermList()
115  {
116  }
117 
120 
121  bool operator==(const Protein & rhs) const
122  {
123  return CVTermList::operator==(rhs) &&
124  id == rhs.id &&
125  sequence == rhs.sequence;
126  }
127 
128  Protein & operator=(const Protein & rhs)
129  {
130  if (&rhs != this)
131  {
133  id = rhs.id;
134  sequence = rhs.sequence;
135  }
136  return *this;
137  }
138 
139  };
140 
151  class OPENMS_DLLAPI RetentionTime :
152  public CVTermListInterface
153  {
154 public:
155 
156  enum class RTUnit : std::int8_t
157  {
158  SECOND = 0, // RT stored in seconds
159  MINUTE, // RT stored in minutes
160  UNKNOWN, // no stored annotation
161  SIZE_OF_RTUNIT
162  };
163 
164  enum class RTType : std::int8_t
165  {
166  LOCAL = 0, // undefined local chromatography
167  NORMALIZED, // standardized reference chromatography
168  PREDICTED, // predicted by referenced software
169  HPINS, // H-PINS "The de facto standard providing the retention times"
170  IRT, // iRT retention time standard
171  UNKNOWN, // no stored annotation
172  SIZE_OF_RTTYPE
173  };
174 
177  software_ref(""),
178  retention_time_unit(RTUnit::SIZE_OF_RTUNIT),
179  retention_time_type(RTType::SIZE_OF_RTTYPE),
180  retention_time_set_(false),
181  retention_time_(0.0)
182  // retention_time_width(0.0),
183  // retention_time_lower(0.0),
184  // retention_time_upper(0.0)
185  {
186  }
187 
189  CVTermListInterface(rhs),
190  software_ref(rhs.software_ref),
191  retention_time_unit(rhs.retention_time_unit),
192  retention_time_type(rhs.retention_time_type),
193  retention_time_set_(rhs.retention_time_set_),
194  retention_time_(rhs.retention_time_)
195  {
196  }
197 
198  virtual ~RetentionTime()
199  {
200  }
201 
203  {
204  if (&rhs != this)
205  {
207  software_ref = rhs.software_ref;
208  retention_time_unit = rhs.retention_time_unit;
209  retention_time_type = rhs.retention_time_type;
210  retention_time_set_ = rhs.retention_time_set_;
211  retention_time_ = rhs.retention_time_;
212  }
213  return *this;
214  }
215 
216  bool operator==(const RetentionTime & rhs) const
217  {
218  return CVTermListInterface::operator==(rhs) &&
219  software_ref == rhs.software_ref &&
220  retention_time_unit == rhs.retention_time_unit &&
221  retention_time_type == rhs.retention_time_type &&
222  retention_time_set_ == rhs.retention_time_set_ &&
223  retention_time_ == rhs.retention_time_;
224  }
225 
226  bool isRTset() const
227  {
228  return retention_time_set_;
229  }
230  void setRT(double rt)
231  {
232  retention_time_ = rt;
233  retention_time_set_ = true;
234  }
235  double getRT() const
236  {
237  OPENMS_PRECONDITION(isRTset(), "RT needs to be set")
238  return retention_time_;
239  }
240 
244 
245 private:
246 
249  // double retention_time_width;
250  // double retention_time_lower;
251  // double retention_time_upper;
252  };
253 
254  class OPENMS_DLLAPI PeptideCompound :
255  public CVTermList
256  {
257 public:
258 
260  CVTermList(),
261  charge_(0),
262  charge_set_(false),
263  drift_time_(-1)
264  {
265  }
266 
268  CVTermList(rhs),
269  id(rhs.id),
270  rts(rhs.rts),
271  charge_(rhs.charge_),
272  charge_set_(rhs.charge_set_),
273  drift_time_(rhs.drift_time_)
274  {
275  }
276 
278  {
279  if (this != &rhs)
280  {
282  rts = rhs.rts;
283  id = rhs.id;
284  charge_ = rhs.charge_;
285  charge_set_ = rhs.charge_set_;
286  drift_time_ = rhs.drift_time_;
287  }
288  return *this;
289  }
290 
291  bool operator==(const PeptideCompound & rhs) const
292  {
293  return CVTermList::operator==(rhs) &&
294  rts == rhs.rts &&
295  id == rhs.id &&
296  charge_ == rhs.charge_ &&
297  charge_set_ == rhs.charge_set_;
298  }
299 
301  void setChargeState(int charge)
302  {
303  charge_ = charge;
304  charge_set_ = true;
305  }
306 
308  bool hasCharge() const
309  {
310  return charge_set_;
311  }
312 
314  int getChargeState() const
315  {
316  OPENMS_PRECONDITION(charge_set_, "Cannot return charge which was never set")
317  return charge_;
318  }
319 
321  void setDriftTime(double dt)
322  {
323  drift_time_ = dt;
324  }
325 
327  double getDriftTime() const
328  {
329  return drift_time_;
330  }
331 
333 
335  bool hasRetentionTime() const
336  {
337  return (!rts.empty() && rts[0].isRTset());
338  }
339 
340  double getRetentionTime() const
341  {
342  if (!hasRetentionTime())
343  {
344  throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
345  "No retention time information available");
346  }
347  return rts[0].getRT();
348  }
349 
352  {
353  if (!hasRetentionTime())
354  {
355  throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
356  "No retention time information available");
357  }
358  return rts[0].retention_time_type;
359  }
360 
363  {
364  if (!hasRetentionTime())
365  {
366  throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
367  "No retention time information available");
368  }
369  return rts[0].retention_time_unit;
370  }
372 
374  std::vector<RetentionTime> rts;
375 
376 protected:
377  int charge_;
379  double drift_time_;
380 
381  };
382 
383  class OPENMS_DLLAPI Compound :
384  public PeptideCompound
385  {
386 public:
387 
389  theoretical_mass(0.0)
390  {
391  }
392 
393  Compound(const Compound & rhs) :
394  PeptideCompound(rhs),
395  molecular_formula(rhs.molecular_formula),
396  smiles_string(rhs.smiles_string),
397  theoretical_mass(rhs.theoretical_mass)
398  {
399  }
400 
401  Compound & operator=(const Compound & rhs)
402  {
403  if (this != &rhs)
404  {
406  molecular_formula = rhs.molecular_formula;
407  smiles_string = rhs.smiles_string;
408  theoretical_mass = rhs.theoretical_mass;
409  }
410  return *this;
411  }
412 
413  bool operator==(const Compound & rhs) const
414  {
415  return PeptideCompound::operator==(rhs) &&
416  molecular_formula == rhs.molecular_formula &&
417  smiles_string == rhs.smiles_string &&
418  theoretical_mass == rhs.theoretical_mass;
419  }
420 
424 
425 protected:
426 
427  };
428 
429  class OPENMS_DLLAPI Peptide :
430  public PeptideCompound
431  {
432 public:
433 
434  struct Modification :
435  public CVTermListInterface
436  {
441 
444  location(-1),
445  unimod_id(-1)
446  {
447  }
448 
449  };
450 
453  {
454  }
455 
456  Peptide(const Peptide & rhs) :
457  PeptideCompound(rhs),
458  protein_refs(rhs.protein_refs),
459  evidence(rhs.evidence),
460  sequence(rhs.sequence),
461  mods(rhs.mods),
462  peptide_group_label_(rhs.peptide_group_label_)
463  {
464  }
465 
466  Peptide & operator=(const Peptide & rhs)
467  {
468  if (this != &rhs)
469  {
471  protein_refs = rhs.protein_refs;
472  evidence = rhs.evidence;
473  sequence = rhs.sequence;
474  mods = rhs.mods;
475  peptide_group_label_ = rhs.peptide_group_label_;
476  }
477  return *this;
478  }
479 
480  bool operator==(const Peptide & rhs) const
481  {
482  return PeptideCompound::operator==(rhs) &&
483  protein_refs == rhs.protein_refs &&
484  evidence == rhs.evidence &&
485  sequence == rhs.sequence &&
486  mods == rhs.mods &&
487  peptide_group_label_ == rhs.peptide_group_label_;
488  }
489 
500  void setPeptideGroupLabel(const String & label)
502  {
503  peptide_group_label_ = label;
504  }
505 
508  {
509  return peptide_group_label_;
510  }
512 
513  std::vector<String> protein_refs;
516  std::vector<Modification> mods;
517 
518 protected:
520  };
521 
522  struct OPENMS_DLLAPI Contact :
523  public CVTermList
524  {
526  CVTermList()
527  {
528  }
529 
531 
532  bool operator==(const Contact & rhs) const
533  {
534  return CVTermList::operator==(rhs) &&
535  id == rhs.id;
536  }
537 
538  Contact & operator=(const Contact & rhs)
539  {
540  if (&rhs != this)
541  {
543  id = rhs.id;
544  }
545  return *this;
546  }
547 
548  };
549 
550  struct OPENMS_DLLAPI Publication :
551  public CVTermList
552  {
554  CVTermList()
555  {
556  }
557 
559 
560  bool operator==(const Publication & rhs) const
561  {
562  return CVTermList::operator==(rhs) &&
563  id == rhs.id;
564  }
565 
567  {
568  if (&rhs != this)
569  {
571  id = rhs.id;
572  }
573  return *this;
574  }
575 
576  };
577 
578  struct OPENMS_DLLAPI Instrument :
579  public CVTermList
580  {
582  CVTermList()
583  {
584  }
585 
587 
588  bool operator==(const Instrument & rhs) const
589  {
590  return CVTermList::operator==(rhs) &&
591  id == rhs.id;
592  }
593 
595  {
596  if (&rhs != this)
597  {
599  id = rhs.id;
600  }
601  return *this;
602  }
603 
604  };
605 
606  struct OPENMS_DLLAPI Prediction :
607  public CVTermList
608  {
610  CVTermList()
611  {
612  }
613 
616 
617  bool operator==(const Prediction & rhs) const
618  {
619  return CVTermList::operator==(rhs) &&
620  contact_ref == rhs.contact_ref &&
621  software_ref == rhs.software_ref;
622  }
623 
625  {
626  if (&rhs != this)
627  {
629  software_ref = rhs.software_ref;
630  contact_ref = rhs.contact_ref;
631  }
632  return *this;
633  }
634 
635  };
636 
637  struct OPENMS_DLLAPI Interpretation :
638  public CVTermListInterface
639  {
640 
641  /*
642  enum ResidueType
643  {
644  Full = 0, // with N-terminus and C-terminus
645  Internal, // internal, without any termini
646  NTerminal, // only N-terminus
647  CTerminal, // only C-terminus
648  AIon, // MS:1001229 N-terminus up to the C-alpha/carbonyl carbon bond
649  BIon, // MS:1001224 N-terminus up to the peptide bond
650  CIon, // MS:1001231 N-terminus up to the amide/C-alpha bond
651  XIon, // MS:1001228 amide/C-alpha bond up to the C-terminus
652  YIon, // MS:1001220 peptide bond up to the C-terminus
653  ZIon, // MS:1001230 C-alpha/carbonyl carbon bond
654  Precursor, // MS:1001523 Precursor ion
655  BIonMinusH20, // MS:1001222 b ion without water
656  YIonMinusH20, // MS:1001223 y ion without water
657  BIonMinusNH3, // MS:1001232 b ion without ammonia
658  YIonMinusNH3, // MS:1001233 y ion without ammonia
659  NonIdentified, // MS:1001240 Non-identified ion
660  Unannotated, // no stored annotation
661  SizeOfResidueType
662  };
663  */
664 
665  typedef Residue::ResidueType IonType; // Interpretation IonType
666 
667  unsigned char ordinal; // MS:1000903 (product ion series ordinal)
668  unsigned char rank; // MS:1000926 (product interpretation rank)
669  IonType iontype; // which type of ion (b/y/z/ ...), see Residue::ResidueType
670 
671  // Constructor
674  ordinal(0),
675  rank(0),
676  iontype(Residue::Unannotated) // Unannotated does not imply any MS OBO term
677  {
678  }
679 
680  // Copy constructor
682  CVTermListInterface(rhs),
683  ordinal(rhs.ordinal),
684  rank(rhs.rank),
685  iontype(rhs.iontype)
686  {
687  }
688 
692  bool operator==(const Interpretation & rhs) const
693  {
694  return CVTermListInterface::operator==(rhs) &&
695  ordinal == rhs.ordinal &&
696  rank == rhs.rank &&
697  iontype == rhs.iontype;
698  }
699 
701  {
702  if (&rhs != this)
703  {
705  ordinal = rhs.ordinal;
706  rank = rhs.rank;
707  iontype = rhs.iontype;
708  }
709  return *this;
710  }
711 
712  bool operator!=(const Interpretation & rhs) const
713  {
714  return !(operator==(rhs));
715  }
717 
718  };
719 
720  struct OPENMS_DLLAPI TraMLProduct :
721  public CVTermListInterface
722  {
725  charge_(0),
726  charge_set_(false),
727  mz_(0)
728  {
729  }
730 
731  bool operator==(const TraMLProduct & rhs) const
732  {
733  return CVTermListInterface::operator==(rhs) &&
734  charge_ == rhs.charge_ &&
735  charge_set_ == rhs.charge_set_ &&
736  mz_ == rhs.mz_ &&
737  configuration_list_ == rhs.configuration_list_ &&
738  interpretation_list_ == rhs.interpretation_list_;
739  }
740 
742  {
743  if (&rhs != this)
744  {
746  charge_ = rhs.charge_;
747  charge_set_ = rhs.charge_set_;
748  mz_ = rhs.mz_;
749  configuration_list_ = rhs.configuration_list_;
750  interpretation_list_ = rhs.interpretation_list_;
751  }
752  return *this;
753  }
754 
755  void setChargeState(int charge)
756  {
757  charge_ = charge;
758  charge_set_ = true;
759  }
760 
762  bool hasCharge() const
763  {
764  return charge_set_;
765  }
766 
767  int getChargeState() const
768  {
769  OPENMS_PRECONDITION(charge_set_, "Cannot return charge which was never set")
770  return charge_;
771  }
772 
773  double getMZ() const
774  {
775  return mz_;
776  }
777 
778  void setMZ(double mz)
779  {
780  mz_ = mz;
781  }
782 
783  const std::vector<Configuration> & getConfigurationList() const
784  {
785  return configuration_list_;
786  }
787 
788  void addConfiguration(const Configuration configuration)
789  {
790  return configuration_list_.push_back(configuration);
791  }
792 
793  const std::vector<Interpretation> & getInterpretationList() const
794  {
795  return interpretation_list_;
796  }
797 
798  void addInterpretation(const Interpretation interpretation)
799  {
800  return interpretation_list_.push_back(interpretation);
801  }
802 
804  {
805  return interpretation_list_.clear();
806  }
807 
808 private:
809  int charge_;
811  double mz_;
812  std::vector<Configuration> configuration_list_;
813  std::vector<Interpretation> interpretation_list_;
814 
815  };
816 
818  OPENMS_DLLAPI OpenMS::AASequence getAASequence(const Peptide& peptide);
819 
821  OPENMS_DLLAPI void setModification(int location, int max_size, String modification, OpenMS::AASequence & aas);
822 
823  }
824 
825 } // namespace OpenMS
826 
bool operator==(const Contact &rhs) const
Definition: TargetedExperimentHelper.h:532
bool operator==(const Compound &rhs) const
Definition: TargetedExperimentHelper.h:413
double retention_time_
Definition: TargetedExperimentHelper.h:248
bool operator==(const Instrument &rhs) const
Definition: TargetedExperimentHelper.h:588
void addConfiguration(const Configuration configuration)
Definition: TargetedExperimentHelper.h:788
Peptide(const Peptide &rhs)
Definition: TargetedExperimentHelper.h:456
String peptide_group_label_
Definition: TargetedExperimentHelper.h:519
int getChargeState() const
Definition: TargetedExperimentHelper.h:767
double getDriftTime() const
Return the peptide or compound ion mobility drift time.
Definition: TargetedExperimentHelper.h:327
bool operator==(const Protein &rhs) const
Definition: TargetedExperimentHelper.h:121
virtual ~RetentionTime()
Definition: TargetedExperimentHelper.h:198
CVTermList evidence
Definition: TargetedExperimentHelper.h:514
A more convenient string class.
Definition: String.h:57
const std::vector< Interpretation > & getInterpretationList() const
Definition: TargetedExperimentHelper.h:793
RetentionTime::RTUnit getRetentionTimeUnit() const
Get compound or peptide retentiontime unit (minute/seconds)
Definition: TargetedExperimentHelper.h:362
Interpretation(const Interpretation &rhs)
Definition: TargetedExperimentHelper.h:681
double avg_mass_delta
Definition: TargetedExperimentHelper.h:437
Protein & operator=(const Protein &rhs)
Definition: TargetedExperimentHelper.h:128
Representation of controlled vocabulary term list.
Definition: CVTermList.h:52
void setChargeState(int charge)
Definition: TargetedExperimentHelper.h:755
String smiles_string
Definition: TargetedExperimentHelper.h:422
Compound & operator=(const Compound &rhs)
Definition: TargetedExperimentHelper.h:401
Configuration & operator=(const Configuration &rhs)
Definition: TargetedExperimentHelper.h:70
String id
Definition: TargetedExperimentHelper.h:530
String URI
Definition: TargetedExperimentHelper.h:98
void setMZ(double mz)
Definition: TargetedExperimentHelper.h:778
RTUnit
Definition: TargetedExperimentHelper.h:156
Definition: TargetedExperimentHelper.h:550
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:106
Compound()
Definition: TargetedExperimentHelper.h:388
String instrument_ref
Definition: TargetedExperimentHelper.h:67
std::vector< Interpretation > interpretation_list_
Definition: TargetedExperimentHelper.h:813
String software_ref
Definition: TargetedExperimentHelper.h:614
void setDriftTime(double dt)
Set the peptide or compound ion mobility drift time.
Definition: TargetedExperimentHelper.h:321
bool operator==(const TraMLProduct &rhs) const
Definition: TargetedExperimentHelper.h:731
TraMLProduct & operator=(const TraMLProduct &rhs)
Definition: TargetedExperimentHelper.h:741
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Prediction & operator=(const Prediction &rhs)
Definition: TargetedExperimentHelper.h:624
Definition: TargetedExperimentHelper.h:637
OpenMS::AASequence getAASequence(const Peptide &peptide)
helper function that converts a Peptide object to a AASequence object
Representation of a peptide/protein sequence.
Definition: AASequence.h:107
String fullname
Definition: TargetedExperimentHelper.h:96
Peptide & operator=(const Peptide &rhs)
Definition: TargetedExperimentHelper.h:466
bool operator==(const Interpretation &rhs) const
Definition: TargetedExperimentHelper.h:692
CVTermList & operator=(const CVTermList &rhs)
Assignment operator.
Definition: TargetedExperimentHelper.h:522
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Contact & operator=(const Contact &rhs)
Definition: TargetedExperimentHelper.h:538
TraMLProduct()
Definition: TargetedExperimentHelper.h:723
bool hasCharge() const
Whether product has set charge state.
Definition: TargetedExperimentHelper.h:762
double mono_mass_delta
Definition: TargetedExperimentHelper.h:438
bool operator==(const Publication &rhs) const
Definition: TargetedExperimentHelper.h:560
Representation of a residue.
Definition: Residue.h:61
Int32 location
Definition: TargetedExperimentHelper.h:439
bool isRTset() const
Definition: TargetedExperimentHelper.h:226
CV(const String &new_id, const String &new_fullname, const String &new_version, const String &new_URI)
Definition: TargetedExperimentHelper.h:86
Interpretation & operator=(const Interpretation &rhs)
Definition: TargetedExperimentHelper.h:700
RetentionTime::RTType getRetentionTimeType() const
Get compound or peptide retentiontime type.
Definition: TargetedExperimentHelper.h:351
std::vector< Configuration > configuration_list_
Definition: TargetedExperimentHelper.h:812
RetentionTime & operator=(const RetentionTime &rhs)
Definition: TargetedExperimentHelper.h:202
bool charge_set_
Definition: TargetedExperimentHelper.h:378
Peptide()
Definition: TargetedExperimentHelper.h:451
void setModification(int location, int max_size, String modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
CVTermListInterface & operator=(const CVTermListInterface &rhs)
Assignment operator.
Protein()
Definition: TargetedExperimentHelper.h:113
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
unsigned char ordinal
Definition: TargetedExperimentHelper.h:667
IonType iontype
Definition: TargetedExperimentHelper.h:669
bool operator==(const RetentionTime &rhs) const
Definition: TargetedExperimentHelper.h:216
Definition: TargetedExperimentHelper.h:63
std::vector< CVTermList > validations
Definition: TargetedExperimentHelper.h:68
double getRT() const
Definition: TargetedExperimentHelper.h:235
Definition: TargetedExperimentHelper.h:720
OPENMS_INT32_TYPE Int32
Signed integer type (32bit)
Definition: Types.h:56
Instrument()
Definition: TargetedExperimentHelper.h:581
double theoretical_mass
Definition: TargetedExperimentHelper.h:423
bool charge_set_
Definition: TargetedExperimentHelper.h:810
int charge_
Definition: TargetedExperimentHelper.h:377
Instrument & operator=(const Instrument &rhs)
Definition: TargetedExperimentHelper.h:594
void setRT(double rt)
Definition: TargetedExperimentHelper.h:230
String id
Definition: TargetedExperimentHelper.h:95
bool operator==(const Prediction &rhs) const
Definition: TargetedExperimentHelper.h:617
String contact_ref
Definition: TargetedExperimentHelper.h:615
Publication & operator=(const Publication &rhs)
Definition: TargetedExperimentHelper.h:566
String sequence
Definition: TargetedExperimentHelper.h:119
bool hasCharge() const
Whether peptide or compound has set charge state.
Definition: TargetedExperimentHelper.h:308
PeptideCompound()
Definition: TargetedExperimentHelper.h:259
String getPeptideGroupLabel() const
Get the peptide group label.
Definition: TargetedExperimentHelper.h:507
RetentionTime()
Definition: TargetedExperimentHelper.h:175
Definition: TargetedExperimentHelper.h:383
Definition: TargetedExperimentHelper.h:254
double getRetentionTime() const
Definition: TargetedExperimentHelper.h:340
std::vector< Modification > mods
Definition: TargetedExperimentHelper.h:516
std::vector< String > protein_refs
Definition: TargetedExperimentHelper.h:513
Interface to the controlled vocabulary term list.
Definition: CVTermListInterface.h:58
String id
Definition: TargetedExperimentHelper.h:373
String id
Definition: TargetedExperimentHelper.h:558
bool hasRetentionTime() const
Get compound or peptide retentiontime.
Definition: TargetedExperimentHelper.h:335
std::vector< RetentionTime > rts
Definition: TargetedExperimentHelper.h:374
double drift_time_
Definition: TargetedExperimentHelper.h:379
Prediction()
Definition: TargetedExperimentHelper.h:609
Definition: TargetedExperimentHelper.h:84
int getChargeState() const
Return the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:314
PeptideCompound(const PeptideCompound &rhs)
Definition: TargetedExperimentHelper.h:267
double getMZ() const
Definition: TargetedExperimentHelper.h:773
String sequence
Definition: TargetedExperimentHelper.h:515
Definition: TargetedExperimentHelper.h:434
bool operator==(const CV &cv) const
Definition: TargetedExperimentHelper.h:100
const std::vector< Configuration > & getConfigurationList() const
Definition: TargetedExperimentHelper.h:783
ResidueType
Definition: Residue.h:143
Interpretation()
Definition: TargetedExperimentHelper.h:672
void addInterpretation(const Interpretation interpretation)
Definition: TargetedExperimentHelper.h:798
String id
Definition: TargetedExperimentHelper.h:118
Residue::ResidueType IonType
Definition: TargetedExperimentHelper.h:665
RTType
Definition: TargetedExperimentHelper.h:164
void resetInterpretations()
Definition: TargetedExperimentHelper.h:803
bool operator==(const CVTermListInterface &rhs) const
equality operator
RetentionTime(const RetentionTime &rhs)
Definition: TargetedExperimentHelper.h:188
Modification()
Definition: TargetedExperimentHelper.h:442
Definition: TargetedExperimentHelper.h:578
This class stores a retention time structure that is used in TargetedExperiment (representing a TraML...
Definition: TargetedExperimentHelper.h:151
String id
Definition: TargetedExperimentHelper.h:586
bool operator==(const CVTermList &cv_term_list) const
equality operator
Definition: TargetedExperimentHelper.h:606
double mz_
Definition: TargetedExperimentHelper.h:811
Definition: TargetedExperimentHelper.h:110
String contact_ref
Definition: TargetedExperimentHelper.h:66
Int32 unimod_id
Definition: TargetedExperimentHelper.h:440
RTType retention_time_type
Definition: TargetedExperimentHelper.h:243
void setChargeState(int charge)
Set the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:301
String software_ref
Definition: TargetedExperimentHelper.h:241
bool operator!=(const Interpretation &rhs) const
Definition: TargetedExperimentHelper.h:712
bool retention_time_set_
Definition: TargetedExperimentHelper.h:247
Compound(const Compound &rhs)
Definition: TargetedExperimentHelper.h:393
String molecular_formula
Definition: TargetedExperimentHelper.h:421
Publication()
Definition: TargetedExperimentHelper.h:553
bool operator==(const Peptide &rhs) const
Definition: TargetedExperimentHelper.h:480
String version
Definition: TargetedExperimentHelper.h:97
bool operator==(const PeptideCompound &rhs) const
Definition: TargetedExperimentHelper.h:291
int charge_
Definition: TargetedExperimentHelper.h:809
unsigned char rank
Definition: TargetedExperimentHelper.h:668
PeptideCompound & operator=(const PeptideCompound &rhs)
Definition: TargetedExperimentHelper.h:277
Definition: TargetedExperimentHelper.h:429
RTUnit retention_time_unit
Definition: TargetedExperimentHelper.h:242
Contact()
Definition: TargetedExperimentHelper.h:525

OpenMS / TOPP release 2.3.0 Documentation generated on Wed Apr 18 2018 19:29:08 using doxygen 1.8.14