Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef OPENMS_ANALYSIS_QUANTITATION_ITRAQQUANTIFIER_H
00036 #define OPENMS_ANALYSIS_QUANTITATION_ITRAQQUANTIFIER_H
00037
00038 #include <vector>
00039
00040 #include <OpenMS/ANALYSIS/QUANTITATION/ItraqConstants.h>
00041 #include <OpenMS/KERNEL/ConsensusMap.h>
00042 #include <OpenMS/METADATA/ProteinIdentification.h>
00043 #include <OpenMS/METADATA/PeptideIdentification.h>
00044
00045
00046 namespace OpenMS
00047 {
00048
00057 class OPENMS_DLLAPI ItraqQuantifier :
00058 public DefaultParamHandler,
00059 public ItraqConstants
00060 {
00061
00062 public:
00063
00064 typedef ItraqConstants::ChannelInfo ChannelInfo;
00065 typedef ItraqConstants::ChannelMapType ChannelMapType;
00066 typedef ItraqConstants::IsotopeMatrices IsotopeMatrices;
00067
00069 ItraqQuantifier();
00070
00072 explicit ItraqQuantifier(Int itraq_type);
00073
00075 ItraqQuantifier(Int itraq_type, const Param & param);
00076
00078 ItraqQuantifier(const ItraqQuantifier & cp);
00079
00081 ItraqQuantifier & operator=(const ItraqQuantifier & rhs);
00082
00092 void run(const ConsensusMap & consensus_map_in,
00093 ConsensusMap & consensus_map_out
00094 );
00095
00099 struct ItraqQuantifierStats
00100 {
00101 ItraqQuantifierStats() :
00102 channel_count(0),
00103 iso_number_ms2_negative(0),
00104 iso_number_reporter_negative(0),
00105 iso_number_reporter_different(0),
00106 iso_solution_different_intensity(0),
00107 iso_total_intensity_negative(0),
00108 number_ms2_total(0),
00109 number_ms2_empty(0),
00110 empty_channels()
00111 {
00112 }
00113
00114 Size channel_count;
00115 Size iso_number_ms2_negative;
00116 Size iso_number_reporter_negative;
00117 Size iso_number_reporter_different;
00118 DoubleReal iso_solution_different_intensity;
00119 DoubleReal iso_total_intensity_negative;
00120 Size number_ms2_total;
00121 Size number_ms2_empty;
00122 std::map<Size, Size> empty_channels;
00123 };
00124
00125 ItraqQuantifierStats getStats() const;
00126
00127 protected:
00128
00129 void setDefaultParams_();
00130
00131 void updateMembers_();
00132
00133 private:
00134
00136 void initIsotopeCorrections_();
00137
00138 void reconstructChannelInfo_(const ConsensusMap & consensus_map);
00139
00145 bool isIdentityCorrectionMatrix_(const Matrix<double>& channel_frequency) const;
00146
00148 Int itraq_type_;
00149
00152 ChannelMapType channel_map_;
00153
00155 IsotopeMatrices isotope_corrections_;
00156
00158 ItraqQuantifierStats stats_;
00159
00160 };
00161
00162 OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const ItraqQuantifier::ItraqQuantifierStats & stats);
00163
00164 }
00165
00166 #endif // OPENMS_ANALYSIS_QUANTITATION_ITRAQQUANTIFIER_H