OpenMS  2.7.0
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-2021.
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 #pragma once
36 
37 #include <OpenMS/CONCEPT/Types.h>
39 #include <OpenMS/KERNEL/Peak2D.h>
43 
44 namespace OpenMS
45 {
46 
52  class OPENMS_DLLAPI ItraqConstants
53  {
54 
55 public:
56 
57  static const Int CHANNEL_COUNT[];
58  enum ITRAQ_TYPES {FOURPLEX = 0, EIGHTPLEX, TMT_SIXPLEX, SIZE_OF_ITRAQ_TYPES};
59 
61  struct ChannelInfo
62  {
65  Int id;
67  bool active;
68  };
69 
72 
74  typedef std::vector<Matrix<double> > IsotopeMatrices;
75 
77  static const Int CHANNELS_FOURPLEX[4][1];
79  static const Int CHANNELS_EIGHTPLEX[8][1];
81  static const Int CHANNELS_TMT_SIXPLEX[6][1];
82  // channel names for 6plex TMT with ETD fragmentation( 114, 115, 116, 117, 118, 119)
83  //static const Int CHANNELS_SIXPLEX_ETD[6][1];
84 
86  static const double ISOTOPECORRECTIONS_FOURPLEX[4][4];
88  static const double ISOTOPECORRECTIONS_EIGHTPLEX[8][4];
90  static const double ISOTOPECORRECTIONS_TMT_SIXPLEX[6][4];
91  // default isotope correction matrix (6 plex TMT)
92  //static const double ISOTOPECORRECTIONS_SIXPLEX_ETD[6][4];
93 
103  static StringList getIsotopeMatrixAsStringList(const int itraq_type, const IsotopeMatrices & isotope_corrections);
104 
117  static void updateIsotopeMatrixFromStringList(const int itraq_type, const StringList & channels, IsotopeMatrices & isotope_corrections);
118 
127  static void initChannelMap(const int itraq_type, ChannelMapType & map);
128 
138  static void updateChannelMap(const StringList & active_channels, ChannelMapType & map);
139 
149  static Matrix<double> translateIsotopeMatrix(const int & itraq_type, const IsotopeMatrices & isotope_corrections);
150 
151  }; // !class
152 
153 } // !namespace
154 
Some constants used throughout iTRAQ classes.
Definition: ItraqConstants.h:53
bool active
channel actually added to the experiment?
Definition: ItraqConstants.h:67
static Matrix< double > translateIsotopeMatrix(const int &itraq_type, const IsotopeMatrices &isotope_corrections)
translate isotope correction matrix in -2,-1,+1,+2 form into 114,115,116,117 format
Map< Int, ChannelInfo > ChannelMapType
maps iTRAQ channel (e.g. 117) to more information
Definition: ItraqConstants.h:71
Int name
114-117 or 113 to 121
Definition: ItraqConstants.h:64
static void updateIsotopeMatrixFromStringList(const int itraq_type, const StringList &channels, IsotopeMatrices &isotope_corrections)
convert strings to isotope correction matrix rows
Int id
0-4 or 0-8
Definition: ItraqConstants.h:65
static void initChannelMap(const int itraq_type, ChannelMapType &map)
information about an iTRAQ channel
ITRAQ_TYPES
Definition: ItraqConstants.h:58
@ EIGHTPLEX
Definition: ItraqConstants.h:58
String description
description given by experimentalist (e.g. lung tissue)
Definition: ItraqConstants.h:63
Peak2D::CoordinateType center
expected centroid of peak in MZ
Definition: ItraqConstants.h:66
std::vector< Matrix< double > > IsotopeMatrices
(user defined?) isotope correction matrix in (-2, -1, +1, +2) row style
Definition: ItraqConstants.h:74
static StringList getIsotopeMatrixAsStringList(const int itraq_type, const IsotopeMatrices &isotope_corrections)
convert isotope correction matrix to stringlist
static void updateChannelMap(const StringList &active_channels, ChannelMapType &map)
activate & annotate channels
stores information on an iTRAQ channel
Definition: ItraqConstants.h:62
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:52
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
A more convenient string class.
Definition: String.h:61
int Int
Signed integer type.
Definition: Types.h:102
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47