Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ReactionMonitoringTransition.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 
40 
41 #include <vector>
42 #include <bitset>
43 
44 namespace OpenMS
45 {
55  class OPENMS_DLLAPI ReactionMonitoringTransition :
56  public CVTermList
57  {
58 
59 public:
60 
65 
67  {
70  DECOY
71  };
72 
78 
81 
83  ~ReactionMonitoringTransition() override;
85 
88 
92  void setName(const String & name);
93 
94  const String & getName() const;
95 
96  void setNativeID(const String & name);
97 
98  const String & getNativeID() const;
99 
100  void setPeptideRef(const String & peptide_ref);
101 
102  const String & getPeptideRef() const;
103 
104  void setCompoundRef(const String & compound_ref);
105 
106  const String & getCompoundRef() const;
107 
109  void setPrecursorMZ(double mz);
110 
112  double getPrecursorMZ() const;
113 
115  bool hasPrecursorCVTerms() const;
116 
117  void setPrecursorCVTermList(const CVTermList & list);
118 
119  void addPrecursorCVTerm(const CVTerm & cv_term);
120 
121  /* @brief Obtain the list of CV Terms for the precursor
122  *
123  * @note You first need to check whether they exist using hasPrecursorCVTerms()
124  */
125  const CVTermList & getPrecursorCVTermList() const;
126 
127  void setProductMZ(double mz);
128 
129  double getProductMZ() const;
130 
131  int getProductChargeState() const;
132 
133  bool isProductChargeStateSet() const;
134 
135  void addProductCVTerm(const CVTerm & cv_term);
136 
137  const std::vector<Product> & getIntermediateProducts() const;
138 
139  void addIntermediateProduct(Product product);
140 
141  void setIntermediateProducts(const std::vector<Product> & products);
142 
143  void setProduct(Product product);
144 
145  const Product & getProduct() const;
146 
147  void setRetentionTime(RetentionTime rt);
148 
149  const RetentionTime & getRetentionTime() const;
150 
152  bool hasPrediction() const;
153 
154  void setPrediction(const Prediction & prediction);
155 
156  void addPredictionTerm(const CVTerm & prediction);
157 
158  /* @brief Obtain the Prediction object
159  *
160  * @note You first need to check whether the object is accessible using hasPrediction()
161  */
162  const Prediction & getPrediction() const;
163 
164  DecoyTransitionType getDecoyTransitionType() const;
165 
166  void setDecoyTransitionType(const DecoyTransitionType & d);
167 
168  double getLibraryIntensity() const;
169 
170  void setLibraryIntensity(double intensity);
171 
184  bool isDetectingTransition() const;
185 
186  void setDetectingTransition(bool val);
187 
196  bool isIdentifyingTransition() const;
197 
198  void setIdentifyingTransition(bool val);
199 
209  bool isQuantifyingTransition() const;
210 
211  void setQuantifyingTransition(bool val);
212 
214 
218  bool operator==(const ReactionMonitoringTransition & rhs) const;
220 
222  bool operator!=(const ReactionMonitoringTransition & rhs) const;
224 
230  struct ProductMZLess :
232  std::binary_function<ReactionMonitoringTransition, ReactionMonitoringTransition, bool>
233  {
234  inline bool operator()(ReactionMonitoringTransition const & left, ReactionMonitoringTransition const & right) const
235  {
236  return left.getProductMZ() < right.getProductMZ();
237  }
238 
239  };
241 
242 protected:
243 
244  void updateMembers_();
245 
247 
249  String name_; // id, required attribute
250 
251  // attributes to a peptide / compound (optional)
255 
257 
259  // Precursor
260  // Product
261  // IntermediateProduct
262  // RetentionTime
263  // Prediction
264  // cvparam / userParam
265 
268 
271 
274 
277 
280 
282  std::vector<Product> intermediate_products_;
283 
286 
289 
291  // (currently: detecting, identifying and quantifying)
292  std::bitset<3> transition_flags_;
294  };
295 }
296 
DecoyTransitionType decoy_type_
specific properties of a transition (e.g. specific CV terms)
Definition: ReactionMonitoringTransition.h:273
RetentionTime rts
Information about predicted or calibrated retention time (optional)
Definition: ReactionMonitoringTransition.h:285
A more convenient string class.
Definition: String.h:57
TargetedExperimentHelper::Prediction Prediction
Definition: ReactionMonitoringTransition.h:64
Representation of controlled vocabulary term list.
Definition: CVTermList.h:52
Definition: ReactionMonitoringTransition.h:69
Product meta information.
Definition: Product.h:48
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
bool operator()(ReactionMonitoringTransition const &left, ReactionMonitoringTransition const &right) const
Definition: ReactionMonitoringTransition.h:234
DecoyTransitionType
Definition: ReactionMonitoringTransition.h:66
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
CVTermList * precursor_cv_terms_
(Other) CV Terms of the Precursor (Q1) of the transition or target
Definition: ReactionMonitoringTransition.h:276
double precursor_mz_
Subelements:
Definition: ReactionMonitoringTransition.h:267
TargetedExperimentHelper::Configuration Configuration
Definition: ReactionMonitoringTransition.h:61
Definition: TargetedExperimentHelper.h:63
Definition: TargetedExperimentHelper.h:720
std::bitset< 3 > transition_flags_
A set of flags to store information about the transition at hand.
Definition: ReactionMonitoringTransition.h:292
String peptide_ref_
Definition: ReactionMonitoringTransition.h:252
TargetedExperimentHelper::RetentionTime RetentionTime
Definition: ReactionMonitoringTransition.h:62
Representation of controlled vocabulary term.
Definition: CVTerm.h:50
String name_
Attributes:
Definition: ReactionMonitoringTransition.h:249
Product product_
Product (Q3) of the transition.
Definition: ReactionMonitoringTransition.h:279
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
double library_intensity_
Intensity of the product (q3) ion (stored in CV Term 1001226 inside the <Transition> tag) ...
Definition: ReactionMonitoringTransition.h:270
String compound_ref_
Definition: ReactionMonitoringTransition.h:253
Definition: ReactionMonitoringTransition.h:68
This class stores a retention time structure that is used in TargetedExperiment (representing a TraML...
Definition: TargetedExperimentHelper.h:151
Definition: TargetedExperimentHelper.h:606
std::vector< Product > intermediate_products_
Intermediate product ion information of the transition when using MS3 or above (optional) ...
Definition: ReactionMonitoringTransition.h:282
TargetedExperimentHelper::TraMLProduct Product
Definition: ReactionMonitoringTransition.h:63
This class stores a SRM/MRM transition.
Definition: ReactionMonitoringTransition.h:55
Prediction * prediction_
Information about a prediction for a suitable transition using some software (optional) ...
Definition: ReactionMonitoringTransition.h:288

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