00001 // -------------------------------------------------------------------------- 00002 // OpenMS -- Open-Source Mass Spectrometry 00003 // -------------------------------------------------------------------------- 00004 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, 00005 // ETH Zurich, and Freie Universitaet Berlin 2002-2012. 00006 // 00007 // This software is released under a three-clause BSD license: 00008 // * Redistributions of source code must retain the above copyright 00009 // notice, this list of conditions and the following disclaimer. 00010 // * Redistributions in binary form must reproduce the above copyright 00011 // notice, this list of conditions and the following disclaimer in the 00012 // documentation and/or other materials provided with the distribution. 00013 // * Neither the name of any author or any participating institution 00014 // may be used to endorse or promote products derived from this software 00015 // without specific prior written permission. 00016 // For a full list of authors, refer to the file AUTHORS. 00017 // -------------------------------------------------------------------------- 00018 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00019 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00020 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00021 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING 00022 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00023 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00024 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00025 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00026 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00027 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 00028 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 // 00030 // -------------------------------------------------------------------------- 00031 // $Maintainer: Andreas Bertsch $ 00032 // $Authors: Andreas Bertsch $ 00033 // -------------------------------------------------------------------------- 00034 00035 #ifndef OPENMS_ANALYSIS_MRM_REACTIONMONITORINGTRANSITION_H 00036 #define OPENMS_ANALYSIS_MRM_REACTIONMONITORINGTRANSITION_H 00037 00038 #include <OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h> 00039 #include <OpenMS/KERNEL/StandardTypes.h> 00040 #include <OpenMS/METADATA/CVTermList.h> 00041 00042 #include <vector> 00043 00044 namespace OpenMS 00045 { 00053 class OPENMS_DLLAPI ReactionMonitoringTransition : 00054 public CVTermList 00055 { 00056 00057 public: 00058 00059 typedef TargetedExperimentHelper::Configuration Configuration; 00060 typedef TargetedExperimentHelper::RetentionTime RetentionTime; 00061 typedef TargetedExperimentHelper::TraMLProduct Product; 00062 typedef TargetedExperimentHelper::Prediction Prediction; 00063 00064 enum DecoyTransitionType 00065 { 00066 UNKNOWN, 00067 TARGET, 00068 DECOY 00069 }; 00070 00074 00075 ReactionMonitoringTransition(); 00076 00078 ReactionMonitoringTransition(const ReactionMonitoringTransition & rhs); 00079 00081 virtual ~ReactionMonitoringTransition(); 00083 00085 ReactionMonitoringTransition & operator=(const ReactionMonitoringTransition & rhs); 00086 00090 void setName(const String & name); 00091 00092 const String & getName() const; 00093 00094 void setNativeID(const String & name); 00095 00096 const String & getNativeID() const; 00097 00098 void setPeptideRef(const String & peptide_ref); 00099 00100 const String & getPeptideRef() const; 00101 00102 void setCompoundRef(const String & compound_ref); 00103 00104 const String & getCompoundRef() const; 00105 00107 void setPrecursorMZ(DoubleReal mz); 00108 00109 DoubleReal getPrecursorMZ() const; 00110 00111 void setPrecursorCVTermList(const CVTermList & list); 00112 00113 void addPrecursorCVTerm(const CVTerm & cv_term); 00114 00115 const CVTermList & getPrecursorCVTermList() const; 00116 00117 void setProductMZ(DoubleReal mz); 00118 00119 DoubleReal getProductMZ() const; 00120 00121 //void setProductCVTermList(const CVTermList& list); 00122 00123 void addProductCVTerm(const CVTerm & cv_term); 00124 00125 //const CVTermList& getProductCVTermList() const; 00126 00127 const std::vector<Product> & getIntermediateProducts() const; 00128 00129 void addIntermediateProduct(Product product); 00130 00131 void setIntermediateProducts(const std::vector<Product> & products); 00132 00133 void setProduct(Product product); 00134 00135 const Product & getProduct() const; 00136 00137 void setRetentionTime(RetentionTime rt); 00138 00139 const RetentionTime & getRetentionTime() const; 00140 00141 void setPrediction(const Prediction & prediction); 00142 00143 void addPredictionTerm(const CVTerm & prediction); 00144 00145 const Prediction & getPrediction() const; 00146 00147 DecoyTransitionType getDecoyTransitionType() const; 00148 00149 void setDecoyTransitionType(const DecoyTransitionType & d); 00150 00151 DoubleReal getLibraryIntensity() const; 00152 00153 void setLibraryIntensity(DoubleReal intensity); 00154 00156 00160 00161 bool operator==(const ReactionMonitoringTransition & rhs) const; 00162 00164 bool operator!=(const ReactionMonitoringTransition & rhs) const; 00166 00172 00173 struct ProductMZLess : 00174 std::binary_function<ReactionMonitoringTransition, ReactionMonitoringTransition, bool> 00175 { 00176 inline bool operator()(ReactionMonitoringTransition const & left, ReactionMonitoringTransition const & right) const 00177 { 00178 return left.getProductMZ() < right.getProductMZ(); 00179 } 00180 00181 }; 00183 00184 protected: 00185 00186 void updateMembers_(); 00187 00189 00190 00191 String name_; // id, required attribute 00192 00193 // attributes to a peptide / compound (optional) 00194 String peptide_ref_; 00195 String compound_ref_; 00197 00199 00200 00201 // Precursor 00202 // Product 00203 // IntermediateProduct 00204 // RetentionTime 00205 // Prediction 00206 // cvparam / userParam 00207 00208 // A transition has exactly one precursor and it must supply the CV Term 1000827 (isolation window target m/z 00209 DoubleReal precursor_mz_; 00210 CVTermList precursor_cv_terms_; 00211 00212 Product product_; 00213 00214 std::vector<Product> intermediate_products_; 00215 00216 RetentionTime rts; 00217 00218 Prediction prediction_; 00220 00222 DecoyTransitionType decoy_type_; 00223 00224 DoubleReal library_intensity_; 00225 }; 00226 } 00227 00228 #endif // OPENMS_ANALYSIS_MRM_REACTIONMONITORINGTRANSITION_H
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:44 using doxygen 1.7.1 |