OpenMS
Loading...
Searching...
No Matches
FeatureGroupingAlgorithmUnlabeled.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: $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
14
15namespace OpenMS
16{
44 {
45public:
48
51
59 template <typename MapType>
60 void setReference(int map_id, const MapType & map)
61 {
62 MapConversion::convert(map_id, map, pairfinder_input_[0]);
63 }
64
73 {
74 return pairfinder_input_[0];
75 }
76
82 void group(const std::vector<FeatureMap > & maps, ConsensusMap & out) override;
83
94 void addToGroup(int map_id, const FeatureMap & feature_map);
95
96private:
97
98 // This vector should always have 2 elements
99 // - the first element is the currently computed consensus map.
100 // After initialization of the algorithm, it will consist of the reference
101 // map alone, after adding all maps through addToGroup it will contain the
102 // final result (e.g. the consensus result of all maps).
103 // - the second element is the map which was last added to the consensus map
104 std::vector<ConsensusMap> pairfinder_input_;
105
110
111 };
112
113} // namespace OpenMS
114
A container for consensus elements.
Definition ConsensusMap.h:67
A map feature grouping algorithm for unlabeled data.
Definition FeatureGroupingAlgorithmUnlabeled.h:44
FeatureGroupingAlgorithmUnlabeled(const FeatureGroupingAlgorithmUnlabeled &)
Copy constructor intentionally not implemented -> private.
~FeatureGroupingAlgorithmUnlabeled() override
Destructor.
FeatureGroupingAlgorithmUnlabeled & operator=(const FeatureGroupingAlgorithmUnlabeled &)
Assignment operator intentionally not implemented -> private.
std::vector< ConsensusMap > pairfinder_input_
Definition FeatureGroupingAlgorithmUnlabeled.h:104
void setReference(int map_id, const MapType &map)
Sets the reference map for the algorithm.
Definition FeatureGroupingAlgorithmUnlabeled.h:60
ConsensusMap & getResultMap()
Returns the computed consensus map (after calling addToGroup with all maps)
Definition FeatureGroupingAlgorithmUnlabeled.h:72
FeatureGroupingAlgorithmUnlabeled()
Default constructor.
void addToGroup(int map_id, const FeatureMap &feature_map)
Adds one map to the group.
void group(const std::vector< FeatureMap > &maps, ConsensusMap &out) override
Applies the algorithm.
Base class for all feature grouping algorithms.
Definition FeatureGroupingAlgorithm.h:25
A container for features.
Definition FeatureMap.h:78
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19