OpenMS
Loading...
Searching...
No Matches
MapAlignmentAlgorithmPoseClustering.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Eva Lange, Clemens Groepl $
7// --------------------------------------------------------------------------
8
9#pragma once
10
19
20namespace OpenMS
21{
53 public ProgressLogger
54 {
55public:
58
61
62 void align(const FeatureMap& map, TransformationDescription& trafo);
63 void align(const PeakMap& map, TransformationDescription& trafo);
65
67 void setReference(const FeatureMap& map);
68
70 void setReference(const PeakMap& map);
71
72protected:
73
74 void updateMembers_() override;
75
91 static void selectPeaks_(UInt64 map_index, const PeakMap& map, ConsensusMap& output, Size n);
92
123 static void selectSpreadPeaks_(UInt64 map_index, const PeakMap& map, ConsensusMap& output, Size n,
124 double rt_window, double mz_tolerance_ppm, Size max_charge, Size rt_bins, Size mz_bins);
125
127 void selectPeakLandmarks_(UInt64 map_index, const PeakMap& map, ConsensusMap& output) const;
128
139 static void selectFeatures_(UInt64 map_index, const FeatureMap& map, ConsensusMap& output, Size n);
140
142
144
146
148
150 bool spread_peaks_ = true;
151 double spread_rt_window_ = 20.0;
152 double spread_mz_tolerance_ppm_ = 10.0;
153 Size spread_max_charge_ = 4;
154 Size spread_rt_bins_ = 10;
155 Size spread_mz_bins_ = 10;
156
157private:
158
163 };
164} // namespace OpenMS
165
A container for consensus elements.
Definition ConsensusMap.h:67
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
A container for features.
Definition FeatureMap.h:78
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
A map alignment algorithm based on pose clustering.
Definition MapAlignmentAlgorithmPoseClustering.h:54
Int max_num_peaks_considered_
Definition MapAlignmentAlgorithmPoseClustering.h:147
ConsensusMap reference_
Definition MapAlignmentAlgorithmPoseClustering.h:145
void setReference(const PeakMap &map)
Sets the reference for the alignment: 'max_num_peaks_considered' MS1 peaks of map,...
static void selectSpreadPeaks_(UInt64 map_index, const PeakMap &map, ConsensusMap &output, Size n, double rt_window, double mz_tolerance_ppm, Size max_charge, Size rt_bins, Size mz_bins)
Copies up to n MS1 peaks of map into output that represent different analytes, spread over the RT and...
static void selectFeatures_(UInt64 map_index, const FeatureMap &map, ConsensusMap &output, Size n)
Copies the n most intense features of map into output, as consensus features of map map_index.
void setReference(const FeatureMap &map)
Sets the reference for the alignment: the 'max_num_peaks_considered' most intense features of map.
MapAlignmentAlgorithmPoseClustering()
Default constructor.
PoseClusteringAffineSuperimposer superimposer_
Definition MapAlignmentAlgorithmPoseClustering.h:141
void align(const FeatureMap &map, TransformationDescription &trafo)
void align(const ConsensusMap &map, TransformationDescription &trafo)
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
MapAlignmentAlgorithmPoseClustering & operator=(const MapAlignmentAlgorithmPoseClustering &)
Assignment operator intentionally not implemented -> private.
static void selectPeaks_(UInt64 map_index, const PeakMap &map, ConsensusMap &output, Size n)
Copies the n most intense MS1 peaks of map into output, as consensus features of map map_index.
~MapAlignmentAlgorithmPoseClustering() override
Destructor.
void align(const PeakMap &map, TransformationDescription &trafo)
void selectPeakLandmarks_(UInt64 map_index, const PeakMap &map, ConsensusMap &output) const
Selects the peaks of map to align, by selectPeaks_() or selectSpreadPeaks_() as set by 'peak_selectio...
MapAlignmentAlgorithmPoseClustering(const MapAlignmentAlgorithmPoseClustering &)
Copy constructor intentionally not implemented -> private.
StablePairFinder pairfinder_
Definition MapAlignmentAlgorithmPoseClustering.h:143
A superimposer that uses a voting scheme, also known as pose clustering, to find a good affine transf...
Definition PoseClusteringAffineSuperimposer.h:42
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:28
This class implements a pair finding algorithm for consensus features.
Definition StablePairFinder.h:85
Generic description of a coordinate transformation.
Definition TransformationDescription.h:38
int Int
Signed integer type.
Definition Types.h:72
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19