Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ItraqConstants.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_ANALYSIS_QUANTITATION_ITRAQCONSTANTS_H
36 #define OPENMS_ANALYSIS_QUANTITATION_ITRAQCONSTANTS_H
37 
38 #include <OpenMS/CONCEPT/Types.h>
40 #include <OpenMS/KERNEL/Peak2D.h>
44 
45 namespace OpenMS
46 {
47 
53  class OPENMS_DLLAPI ItraqConstants
54  {
55 
56 public:
57 
58  static const Int CHANNEL_COUNT[];
59  enum ITRAQ_TYPES {FOURPLEX = 0, EIGHTPLEX, TMT_SIXPLEX, SIZE_OF_ITRAQ_TYPES};
60 
62  struct ChannelInfo
63  {
64  String description; // description given by experimentalist (e.g. lung tissue)
65  Int name; // 114-117 or 113 to 121
66  Int id; // 0-4 or 0-8
67  Peak2D::CoordinateType center; // expected centroid of peak in MZ
68  bool active; // channel actually added to the experiment?
69  };
70 
73 
75  typedef std::vector<Matrix<double> > IsotopeMatrices;
76 
78  static const Int CHANNELS_FOURPLEX[4][1];
80  static const Int CHANNELS_EIGHTPLEX[8][1];
82  static const Int CHANNELS_TMT_SIXPLEX[6][1];
83  // channel names for 6plex TMT with ETD fragmentation( 114, 115, 116, 117, 118, 119)
84  //static const Int CHANNELS_SIXPLEX_ETD[6][1];
85 
87  static const double ISOTOPECORRECTIONS_FOURPLEX[4][4];
89  static const double ISOTOPECORRECTIONS_EIGHTPLEX[8][4];
91  static const double ISOTOPECORRECTIONS_TMT_SIXPLEX[6][4];
92  // default isotope correction matrix (6 plex TMT)
93  //static const double ISOTOPECORRECTIONS_SIXPLEX_ETD[6][4];
94 
104  static StringList getIsotopeMatrixAsStringList(const int itraq_type, const IsotopeMatrices & isotope_corrections);
105 
118  static void updateIsotopeMatrixFromStringList(const int itraq_type, const StringList & channels, IsotopeMatrices & isotope_corrections);
119 
128  static void initChannelMap(const int itraq_type, ChannelMapType & map);
129 
139  static void updateChannelMap(const StringList & active_channels, ChannelMapType & map);
140 
150  static Matrix<double> translateIsotopeMatrix(const int & itraq_type, const IsotopeMatrices & isotope_corrections);
151 
152  }; // !class
153 
154 } // !namespace
155 
156 #endif // OPENMS_ANALYSIS_QUANTITATION_ITRAQCONSTANTS_H
bool active
Definition: ItraqConstants.h:68
A more convenient string class.
Definition: String.h:57
Int id
Definition: ItraqConstants.h:66
ITRAQ_TYPES
Definition: ItraqConstants.h:59
Some constants used throughout iTRAQ classes.
Definition: ItraqConstants.h:53
stores information on an iTRAQ channel
Definition: ItraqConstants.h:62
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
String description
Definition: ItraqConstants.h:64
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Peak2D::CoordinateType center
Definition: ItraqConstants.h:67
Int name
Definition: ItraqConstants.h:65
Map< Int, ChannelInfo > ChannelMapType
maps iTRAQ channel (e.g. 117) to more information
Definition: ItraqConstants.h:72
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
Definition: ItraqConstants.h:59

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