OpenMS
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-2023.
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>
38 #include <OpenMS/KERNEL/Peak2D.h>
42 
43 #include <map>
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  {
66  Int id;
68  bool active;
69  };
70 
72  typedef std::map<Int, ChannelInfo> ChannelMapType;
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 
Some constants used throughout iTRAQ classes.
Definition: ItraqConstants.h:54
bool active
channel actually added to the experiment?
Definition: ItraqConstants.h:68
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
Int name
114-117 or 113 to 121
Definition: ItraqConstants.h:65
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:66
static void initChannelMap(const int itraq_type, ChannelMapType &map)
information about an iTRAQ channel
ITRAQ_TYPES
Definition: ItraqConstants.h:59
@ EIGHTPLEX
Definition: ItraqConstants.h:59
String description
description given by experimentalist (e.g. lung tissue)
Definition: ItraqConstants.h:64
Peak2D::CoordinateType center
expected centroid of peak in MZ
Definition: ItraqConstants.h:67
std::vector< Matrix< double > > IsotopeMatrices
(user defined?) isotope correction matrix in (-2, -1, +1, +2) row style
Definition: ItraqConstants.h:75
std::map< Int, ChannelInfo > ChannelMapType
maps iTRAQ channel (e.g. 117) to more information
Definition: ItraqConstants.h:72
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:63
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
A more convenient string class.
Definition: String.h:60
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:48