40 #include <OpenMS/OpenMSConfig.h> 41 #include <OpenMS/config.h> 43 #include <unordered_map> 151 Size num_maps,
double max_distance,
239 double getCenterRT()
const;
242 double getCenterMZ()
const;
245 Int getXCoord()
const;
248 Int getYCoord()
const;
262 void add(
const GridFeature*
const element,
double distance);
274 bool update(
const Elements& removed);
280 double getCurrentQuality()
const;
283 const std::set<AASequence>& getAnnotations();
301 void initializeCluster();
304 void finalizeCluster();
307 Elements getAllNeighbors()
const;
311 void computeQuality_();
332 double optimizeAnnotations_();
335 void makeSeqTable_(std::map<
AASequence, std::map<Size,double>>& seq_table)
const;
338 void recomputeNeighbors_();
std::set< AASequence > annotations_
Set of annotations of the cluster.
Definition: QTCluster.h:195
const GridFeature *const center_point_
Pointer to the cluster center.
Definition: QTCluster.h:157
std::unordered_map< Size, Neighbor > NeighborMap
Definition: QTCluster.h:121
A representation of a QT cluster used for feature grouping.
Definition: QTCluster.h:107
Size id_
unique id of this cluster
Definition: QTCluster.h:160
Int x_coord_
x coordinate in the grid cell
Definition: QTCluster.h:184
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
Size map_index
Definition: QTCluster.h:125
Definition: QTCluster.h:115
NeighborMap neighbors_
Map that keeps track of the best current feature for each map.
Definition: QTCluster.h:166
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
std::vector< Element > Elements
Definition: QTCluster.h:129
Int y_coord_
y coordinate in the grid cell
Definition: QTCluster.h:187
Representation of a feature in a hash grid.
Definition: GridFeature.h:52
bool use_IDs_
Keep track of peptide IDs and use them for matching?
Definition: QTCluster.h:353
bool collect_annotations_
Whether initial collection of all neighbors is needed.
Definition: QTCluster.h:364
BulkData * data_
Pointer to data members.
Definition: QTCluster.h:344
bool finalized_
Whether current cluster is accepting new elements or not (if true, no more new elements allowed) ...
Definition: QTCluster.h:367
bool changed_
Has the cluster changed (if yes, quality needs to be recomputed)?
Definition: QTCluster.h:350
Class to store the bulk internal data (neighbors, annotations, etc.)
Definition: QTCluster.h:137
double distance
Definition: QTCluster.h:117
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Definition: QTCluster.h:123
std::multimap< double, const GridFeature * > NeighborList
Definition: QTCluster.h:112
NeighborMapMulti tmp_neighbors_
Temporary map tracking *all* neighbors.
Definition: QTCluster.h:175
bool valid_
Whether current cluster is valid.
Definition: QTCluster.h:347
std::unordered_map< Size, NeighborList > NeighborMapMulti
Definition: QTCluster.h:113
double quality_
Quality of the cluster.
Definition: QTCluster.h:341
bool isInvalid() const
Whether current cluster is invalid.
Definition: QTCluster.h:295
int Int
Signed integer type.
Definition: Types.h:102
Size num_maps_
Number of input maps.
Definition: QTCluster.h:181
const GridFeature * feature
Definition: QTCluster.h:118
double max_distance_
Maximum distance of a point that can still belong to the cluster.
Definition: QTCluster.h:178