~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to include/OpenMS/ANALYSIS/QUANTITATION/ItraqChannelExtractor.h

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- mode: C++; tab-width: 2; -*-
 
2
// vi: set ts=2:
 
3
//
 
4
// --------------------------------------------------------------------------
 
5
//                   OpenMS Mass Spectrometry Framework
 
6
// --------------------------------------------------------------------------
 
7
//  Copyright (C) 2003-2011 -- Oliver Kohlbacher, Knut Reinert
 
8
//
 
9
//  This library is free software; you can redistribute it and/or
 
10
//  modify it under the terms of the GNU Lesser General Public
 
11
//  License as published by the Free Software Foundation; either
 
12
//  version 2.1 of the License, or (at your option) any later version.
 
13
//
 
14
//  This library is distributed in the hope that it will be useful,
 
15
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
//  Lesser General Public License for more details.
 
18
//
 
19
//  You should have received a copy of the GNU Lesser General Public
 
20
//  License along with this library; if not, write to the Free Software
 
21
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
//
 
23
// --------------------------------------------------------------------------
 
24
// $Maintainer: Chris Bielow $
 
25
// $Authors: $
 
26
// --------------------------------------------------------------------------
 
27
 
 
28
#ifndef OPENMS_ANALYSIS_QUANTITATION_ITRAQCHANNELEXTRACTOR_H
 
29
#define OPENMS_ANALYSIS_QUANTITATION_ITRAQCHANNELEXTRACTOR_H
 
30
 
 
31
#include <vector>
 
32
#include <OpenMS/KERNEL/ConsensusMap.h>
 
33
#include <OpenMS/KERNEL/MSExperiment.h>
 
34
#include <OpenMS/ANALYSIS/QUANTITATION/ItraqConstants.h>
 
35
 
 
36
namespace OpenMS
 
37
{
 
38
        
 
39
        /**
 
40
                @brief [experimental class] extracts the iTRAQ channels from tandem MS data and stores intensity values in a consensus map
 
41
                
 
42
                [experimental class]
 
43
                This class supports 4 and 8 channel iTRAQ and will optionally do peak picking before the quantitation step.
 
44
                Quantitation is done by adding all signals within a small delta around the expected m/z of each channel.
 
45
                When all channels are found to be empty, the ConsensusFeature is not created.
 
46
                No postprocessing is done here. Use ItraqQuantifier for that!
 
47
        
 
48
                @htmlinclude OpenMS_ItraqChannelExtractor.parameters    
 
49
        
 
50
        */
 
51
        class OPENMS_DLLAPI ItraqChannelExtractor
 
52
                : public DefaultParamHandler,
 
53
                        public ItraqConstants
 
54
        {
 
55
 
 
56
        public:
 
57
                
 
58
                typedef ItraqConstants::ChannelMapType ChannelMapType;
 
59
 
 
60
                /// Constructor (assuming 4plex)
 
61
                ItraqChannelExtractor();
 
62
 
 
63
                /// Constructor with iTRAQ type (from enum ItraqConstants::ITRAQ_TYPES)
 
64
                ItraqChannelExtractor(Int itraq_type);
 
65
                
 
66
                /// Constructor with iTRAQ type (from enum ItraqConstants::ITRAQ_TYPES) and param
 
67
                ItraqChannelExtractor(Int itraq_type, const Param& param);
 
68
 
 
69
                /// copy constructor
 
70
                ItraqChannelExtractor(const ItraqChannelExtractor& cp);
 
71
 
 
72
                /// assignment operator
 
73
                ItraqChannelExtractor& operator = (const ItraqChannelExtractor& rhs);
 
74
 
 
75
                
 
76
                /// @brief extracts the iTRAQ channels from the tandem MS data and stores intensity values in a consensus map
 
77
                ///
 
78
                /// @param ms_exp_data Raw data to read
 
79
                /// @param consensus_map 
 
80
                void run(const MSExperiment<Peak1D>& ms_exp_data, ConsensusMap& consensus_map);
 
81
 
 
82
        protected:
 
83
                
 
84
                void setDefaultParams_();
 
85
                
 
86
                /// implemented for DefaultParamHandler
 
87
                void updateMembers_();
 
88
                        
 
89
                
 
90
        private:
 
91
                
 
92
                /// initialize
 
93
                void init_();
 
94
                
 
95
                /// set to either ItraqConstants::FOURPLEX or ItraqConstants::EIGHTPLEX
 
96
                Int itraq_type_;
 
97
                
 
98
                /// map the channel-name (eg 114) onto its description and the centroid mass
 
99
                /// the channel-name is also the id-string in the mapList section of the ConsensusMap
 
100
                ChannelMapType channel_map_;    
 
101
 
 
102
        }; // !class
 
103
 
 
104
        
 
105
} // !namespace
 
106
 
 
107
#endif // OPENMS_ANALYSIS_QUANTITATION_ITRAQCHANNELEXTRACTOR_H
 
108