OpenMS
FeatureGroupingAlgorithmQT.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hendrik Weisser $
6 // $Authors: Steffen Sass, Hendrik Weisser $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
26  class OPENMS_DLLAPI FeatureGroupingAlgorithmQT :
28  {
29 public:
32 
35 
43  void group(const std::vector<FeatureMap>& maps, ConsensusMap& out) override;
44 
52  void group(const std::vector<ConsensusMap>& maps,
53  ConsensusMap& out) override;
54 
57  {
58  return new FeatureGroupingAlgorithmQT();
59  }
60 
63  {
64  return "unlabeled_qt";
65  }
66 
67 private:
68 
71 
74 
82  template <typename MapType>
83  void group_(const std::vector<MapType>& maps, ConsensusMap& out);
84  };
85 
86 } // namespace OpenMS
87 
A container for consensus elements.
Definition: ConsensusMap.h:66
A feature grouping algorithm for unlabeled data.
Definition: FeatureGroupingAlgorithmQT.h:28
void group_(const std::vector< MapType > &maps, ConsensusMap &out)
Applies the algorithm to feature or consensus maps.
~FeatureGroupingAlgorithmQT() override
Destructor.
FeatureGroupingAlgorithmQT & operator=(const FeatureGroupingAlgorithmQT &)
Assignment operator intentionally not implemented -> private.
static String getProductName()
Returns the product name (for the Factory)
Definition: FeatureGroupingAlgorithmQT.h:62
FeatureGroupingAlgorithmQT()
Default constructor.
FeatureGroupingAlgorithmQT(const FeatureGroupingAlgorithmQT &)
Copy constructor intentionally not implemented -> private.
void group(const std::vector< ConsensusMap > &maps, ConsensusMap &out) override
Applies the algorithm to consensus maps.
static FeatureGroupingAlgorithm * create()
Creates a new instance of this class (for Factory)
Definition: FeatureGroupingAlgorithmQT.h:56
void group(const std::vector< FeatureMap > &maps, ConsensusMap &out) override
Applies the algorithm to feature maps.
Base class for all feature grouping algorithms.
Definition: FeatureGroupingAlgorithm.h:25
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22