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