Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ITRAQLabeler.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: Chris Bielow $
32 // $Authors: Chris Bielow $
33 // --------------------------------------------------------------------------
34 
35 #ifndef OPENMS_SIMULATION_LABELING_ITRAQLABELER_H
36 #define OPENMS_SIMULATION_LABELING_ITRAQLABELER_H
37 
42 
43 namespace OpenMS
44 {
45 
54  class OPENMS_DLLAPI ITRAQLabeler :
55  public BaseLabeler
56  {
57 public:
58 
62 
64  ITRAQLabeler();
65 
67  virtual ~ITRAQLabeler();
68 
70  static BaseLabeler* create()
71  {
72  return new ITRAQLabeler();
73  }
74 
76  static const String getProductName()
77  {
78  return "itraq";
79  }
80 
81  // redeclaration of virtual methods
82  void preCheck(Param& param) const;
83 
84  void setUpHook(SimTypes::FeatureMapSimVector& /* channels */);
85 
86  void postDigestHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */);
87 
88  void postRTHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */);
89 
90  void postDetectabilityHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */);
91 
92  void postIonizationHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */);
93 
94  void postRawMSHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */);
95 
96  void postRawTandemMSHook(SimTypes::FeatureMapSimVector& /* features_to_simulate */, SimTypes::MSSimExperiment& /* simulated map */);
97 
98 protected:
99 
104  void addModificationToPeptideHit_(Feature& feature, const String& modification, const Size& pos) const;
105 
113  void labelPeptide_(const Feature& feature, SimTypes::FeatureMapSim& result) const;
114 
115  Feature mergeFeatures_(Feature& labeled_channel_feature, const AASequence& unmodified_sequence, std::map<AASequence, Feature>& unlabeled_features_index) const;
116 
118  void updateMembers_();
119 
120  // get the closest RT profile factor of a feature for a given RT
121  double getRTProfileIntensity_(const Feature& f, const double MS2_RT_time) const;
122 
124  EigenMatrixXdPtr getItraqIntensity_(const Feature& f, const double MS2_RT_time) const;
125 
126 
127  // Members:
128 
131 
134  ChannelMapType channel_map_;
135 
137  IsotopeMatrices isotope_corrections_;
138 
141 
142  };
143 } // namespace OpenMS
144 
145 #endif //#ifndef OPENMS_SIMULATION_LABELING_ITRAQLabeler_H
A more convenient string class.
Definition: String.h:57
ChannelMapType channel_map_
Definition: ITRAQLabeler.h:134
IsotopeMatrices isotope_corrections_
Matrices with isotope correction values (one for each plex-type)
Definition: ITRAQLabeler.h:137
A container for features.
Definition: FeatureMap.h:94
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
stores information on an iTRAQ channel
Definition: ItraqConstants.h:62
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ItraqConstants::ChannelInfo ChannelInfo
Definition: ITRAQLabeler.h:59
static const String getProductName()
name of the model (needed by Factory)
Definition: ITRAQLabeler.h:76
ItraqConstants::IsotopeMatrices IsotopeMatrices
Definition: ITRAQLabeler.h:61
ItraqConstants::ChannelMapType ChannelMapType
Definition: ITRAQLabeler.h:60
static BaseLabeler * create()
create new object (needed by Factory)
Definition: ITRAQLabeler.h:70
An LC-MS feature.
Definition: Feature.h:70
Int itraq_type_
set to either ItraqConstants::FOURPLEX or ItraqConstants::EIGHTPLEX
Definition: ITRAQLabeler.h:130
Management and storage of parameters / INI files.
Definition: Param.h:75
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
boost::shared_ptr< const Eigen::MatrixXd > EigenMatrixXdPtr
Definition: MatrixUtils.h:50
std::vector< FeatureMapSim > FeatureMapSimVector
Sim FeatureMap Vector.
Definition: SimTypes.h:100
double y_labeling_efficiency_
efficiency of "Y" labeling
Definition: ITRAQLabeler.h:140
Simulate iTRAQ experiments.
Definition: ITRAQLabeler.h:54
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
std::vector< Matrix< double > > IsotopeMatrices
(user defined?) isotope correction matrix in (-2, -1, +1, +2) row style
Definition: ItraqConstants.h:75
int Int
Signed integer type.
Definition: Types.h:103
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:51
Abstract base class for all kinds of labeling techniques.
Definition: BaseLabeler.h:50

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