 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
44 #include <boost/heap/fibonacci_heap.hpp>
45 #include <unordered_map>
49 #include <unordered_set>
110 typedef std::unordered_map<
111 std::pair<OpenMS::GridFeature*, OpenMS::GridFeature*>,
115 typedef std::unordered_map<
119 typedef boost::heap::fibonacci_heap<QTCluster>
Heap;
169 void setParameters_(
double max_intensity,
double max_mz);
182 bool makeConsensusFeature_(
Heap& cluster_heads,
186 const std::vector<Heap::handle_type>& handles);
197 void computeClustering_(
const Grid& grid,
199 std::vector<QTCluster::BulkData>& cluster_data,
200 std::vector<Heap::handle_type>& handles,
209 void removeFromElementMapping_(
const QTCluster& cluster,
221 void createConsensusFeature_(
ConsensusFeature& feature,
const double quality,
246 const std::vector<Heap::handle_type>& handles,
250 template <
typename MapType>
251 void run_(
const std::vector<MapType>& input_maps,
ConsensusMap& result_map);
254 template <
typename MapType>
255 void run_internal_(
const std::vector<MapType>& input_maps,
264 void addClusterElements_(
const Grid& grid,
QTCluster& cluster);
269 bool distIsOutlier_(
double dist,
double rt);
300 void run(
const std::vector<ConsensusMap>& input_maps,
310 void run(
const std::vector<FeatureMap>& input_maps,
std::unordered_map< std::pair< OpenMS::GridFeature *, OpenMS::GridFeature * >, double > PairDistances
Distances between pairs of grid features.
Definition: QTClusterFinder.h:112
A more convenient string class.
Definition: String.h:58
double noID_penalty_
Definition: QTClusterFinder.h:141
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< Element > Elements
Definition: QTCluster.h:129
double max_diff_rt_
Maximum RT difference.
Definition: QTClusterFinder.h:144
Representation of a feature in a hash grid.
Definition: GridFeature.h:52
A variant of QT clustering for the detection of feature groups.
Definition: QTClusterFinder.h:104
Mass-to-charge dimension id (1 if used as a const int)
Definition: Peak2D.h:76
HashGrid< OpenMS::GridFeature * > Grid
Definition: QTClusterFinder.h:121
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Container for (2-dimensional coordinate, value) pairs.
Definition: HashGrid.h:62
std::unordered_set< const OpenMS::GridFeature * > already_used_
Set of features already used.
Definition: QTClusterFinder.h:156
A representation of a QT cluster used for feature grouping.
Definition: QTCluster.h:107
A consensus feature spanning multiple LC-MS/MS experiments.
Definition: ConsensusFeature.h:69
std::unordered_map< const OpenMS::GridFeature *, std::unordered_set< Size > > ElementMapping
Map to store which grid features are next to which clusters (saves the clusters ids)
Definition: QTClusterFinder.h:116
static BaseGroupFinder * create()
Returns an instance of this class.
Definition: QTClusterFinder.h:314
A functor class for the calculation of distances between features or consensus features.
Definition: FeatureDistance.h:89
Size num_maps_
Number of input maps.
Definition: QTClusterFinder.h:125
Size min_nr_diffs_per_bin_
Min. nr. of differences from matched IDs requested to calculate a linking tolerance per RT bin.
Definition: QTClusterFinder.h:133
double max_diff_mz_
Maximum m/z difference.
Definition: QTClusterFinder.h:147
boost::heap::fibonacci_heap< QTCluster > Heap
Heap to efficiently find the best clusters.
Definition: QTClusterFinder.h:119
A container for consensus elements.
Definition: ConsensusMap.h:82
std::map< double, double > bin_tolerances_
Definition: QTClusterFinder.h:160
FeatureDistance feature_distance_
Feature distance functor.
Definition: QTClusterFinder.h:153
bool use_IDs_
Consider peptide identifications for grouping?
Definition: QTClusterFinder.h:128
double min_score_
Min. score for an ID to be considered for tolerance estimation.
Definition: QTClusterFinder.h:136
Retention time dimension id (0 if used as a const int)
Definition: Peak2D.h:75
The base class of all element group finding algorithms.
Definition: BaseGroupFinder.h:61
static const String getProductName()
Returns the name of the product.
Definition: QTClusterFinder.h:288
int nr_partitions_
Maximum m/z difference.
Definition: QTClusterFinder.h:150