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_DECHARGING_FEATUREDECONVOLUTION_H
00036 #define OPENMS_ANALYSIS_DECHARGING_FEATUREDECONVOLUTION_H
00037
00038
00039 #include <OpenMS/KERNEL/FeatureMap.h>
00040 #include <OpenMS/KERNEL/ConsensusMap.h>
00041 #include <OpenMS/ANALYSIS/DECHARGING/ILPDCWrapper.h>
00042 #include <OpenMS/DATASTRUCTURES/DPosition.h>
00043 #include <OpenMS/DATASTRUCTURES/MassExplainer.h>
00044
00045 namespace OpenMS
00046 {
00047
00048 class Compomer;
00049
00058 class OPENMS_DLLAPI FeatureDeconvolution :
00059 public DefaultParamHandler
00060 {
00061 public:
00062
00063 enum CHARGEMODE {QFROMFEATURE = 1, QHEURISTIC, QALL};
00064
00065 typedef FeatureMap<> FeatureMapType;
00066 typedef Feature FeatureType;
00067 typedef DPosition<2> ClusterPointType;
00068 typedef FeatureMapType::FeatureType::CoordinateType CoordinateType;
00069 typedef ILPDCWrapper::PairsType PairsType;
00070
00074
00075 FeatureDeconvolution();
00076
00078 FeatureDeconvolution(const FeatureDeconvolution & source);
00079
00081 FeatureDeconvolution & operator=(const FeatureDeconvolution & source);
00082
00084 virtual ~FeatureDeconvolution();
00086
00097 void compute(const FeatureMapType & fm_in, FeatureMapType & fm_out, ConsensusMap & cons_map, ConsensusMap & cons_map_p);
00098
00099 protected:
00100
00101 void updateMembers_();
00102
00108 struct CmpInfo_;
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 void checkSolution_(const ConsensusMap & cons_map) const;
00119
00124 void inferMoreEdges_(PairsType & edges, Map<Size, std::set<CmpInfo_> > & feature_adducts);
00125
00127 void printEdgesOfConnectedFeatures_(Size idx_1, Size idx_2, const PairsType & feature_relation);
00128
00136 inline bool intensityFilterPassed_(const Int q1, const Int q2, const Compomer & cmp, const FeatureType & f1, const FeatureType & f2);
00137
00145 bool chargeTestworthy_(const Int feature_charge, const Int putative_charge, const bool other_unchanged) const;
00146
00148 MassExplainer::AdductsType potential_adducts_;
00150 Map<Size, String> map_label_;
00152 Map<String, Size> map_label_inverse_;
00154 bool enable_intensity_filter_;
00156 CHARGEMODE q_try_;
00158 Int verbose_level_;
00159
00160 };
00161 }
00162
00163 #endif // OPENMS_ANALYSIS_DECHARGING_FEATUREDECONVOLUTION_H