35 #ifndef OPENMS_KERNEL_CONSENSUSFEATURE_H 36 #define OPENMS_KERNEL_CONSENSUSFEATURE_H 44 #include <OpenMS/OpenMSConfig.h> 71 typedef std::set<FeatureHandle, FeatureHandle::IndexLess>
HandleSetType;
80 std::binary_function<ConsensusFeature, ConsensusFeature, bool>
89 return left.
size() < right;
94 return left < right.
size();
106 std::binary_function<ConsensusFeature, ConsensusFeature, bool>
205 void insert(
const HandleSetType& handle_set);
224 const HandleSetType& getFeatures()
const;
227 std::vector<FeatureHandle> getFeatureList()
const;
248 void computeConsensus();
259 void computeMonoisotopicConsensus();
274 void computeDechargeConsensus(
const FeatureMap& fm,
bool intensity_weighted_averaging =
false);
283 void addRatio(
const Ratio& r);
292 void setRatios(std::vector<Ratio>& rs);
297 std::vector<Ratio> getRatios()
const;
302 std::vector<Ratio>& getRatios();
308 const_iterator begin()
const;
312 const_iterator end()
const;
316 const_reverse_iterator rbegin()
const;
318 reverse_iterator rbegin();
320 const_reverse_iterator rend()
const;
322 reverse_iterator rend();
340 #endif // OPENMS_KERNEL_CONSENSUSFEATURE_H virtual ~Ratio()
Definition: ConsensusFeature.h:130
const_iterator begin() const
A more convenient string class.
Definition: String.h:57
HandleSetType::const_reverse_iterator const_reverse_iterator
Definition: ConsensusFeature.h:74
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:55
Compare by size(), the number of consensus elements.
Definition: ConsensusFeature.h:79
A container for features.
Definition: FeatureMap.h:94
bool operator()(ConsensusFeature const &left, ConsensusFeature const &right) const
Definition: ConsensusFeature.h:108
Compare by the sets of consensus elements (lexicographically)
Definition: ConsensusFeature.h:105
Comparator by map and unique id.
Definition: FeatureHandle.h:141
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const_iterator end() const
HandleSetType handles_
Definition: ConsensusFeature.h:330
A basic LC-MS feature.
Definition: BaseFeature.h:56
String numerator_ref_
Definition: ConsensusFeature.h:148
bool operator()(const UInt64 &left, const UInt64 &right) const
Definition: ConsensusFeature.h:97
Ratio(const Ratio &rhs)
Definition: ConsensusFeature.h:122
std::vector< Ratio > ratios_
Definition: ConsensusFeature.h:331
double ratio_value_
Definition: ConsensusFeature.h:146
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
bool operator()(ConsensusFeature const &left, UInt64 const &right) const
Definition: ConsensusFeature.h:87
std::set< FeatureHandle, FeatureHandle::IndexLess > HandleSetType
Type definitions.
Definition: ConsensusFeature.h:71
slim struct to feed the need for systematically storing of ratios (
Definition: ConsensusFeature.h:116
Ratio & operator=(const Ratio &rhs)
Definition: ConsensusFeature.h:134
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:78
std::vector< String > description_
Definition: ConsensusFeature.h:149
bool operator()(UInt64 const &left, ConsensusFeature const &right) const
Definition: ConsensusFeature.h:92
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
Representation of a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:58
HandleSetType::iterator iterator
Definition: ConsensusFeature.h:73
HandleSetType::const_iterator const_iterator
Definition: ConsensusFeature.h:72
String denominator_ref_
Definition: ConsensusFeature.h:147
HandleSetType::reverse_iterator reverse_iterator
Definition: ConsensusFeature.h:75
bool operator()(ConsensusFeature const &left, ConsensusFeature const &right) const
Definition: ConsensusFeature.h:82
Ratio()
Definition: ConsensusFeature.h:118
A 2-dimensional consensus feature.
Definition: ConsensusFeature.h:65