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{
37 {
38public:
41
44
52 template <typename MapType>
53 void setReference(int map_id, const MapType & map)
54 {
55 MapConversion::convert(map_id, map, pairfinder_input_[0]);
56 }
57
62 {
63 return pairfinder_input_[0];
64 }
65
71 void group(const std::vector<FeatureMap > & maps, ConsensusMap & out) override;
72
83 void addToGroup(int map_id, const FeatureMap & feature_map);
84
85private:
86
87 // This vector should always have 2 elements
88 // - the first element is the currently computed consensus map.
89 // After initialization of the algorithm, it will consist of the reference
90 // map alone, after adding all maps through addToGroup it will contain the
91 // final result (e.g. the consensus result of all maps).
92 // - the second element is the map which was last added to the consensus map
93 std::vector<ConsensusMap> pairfinder_input_;
94
99
100 };
101
102} // namespace OpenMS
103
A container for consensus elements.
Definition ConsensusMap.h:68
A map feature grouping algorithm for unlabeled data.
Definition FeatureGroupingAlgorithmUnlabeled.h:37
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:93
void setReference(int map_id, const MapType &map)
Sets the reference map for the algorithm.
Definition FeatureGroupingAlgorithmUnlabeled.h:53
ConsensusMap & getResultMap()
Returns the computed consensus map (after calling addToGroup with all maps)
Definition FeatureGroupingAlgorithmUnlabeled.h:61
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:82
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19