OpenMS
ConsensusMapNormalizerAlgorithmMedian.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Johannes Veit $
6 // $Authors: Johannes Junker $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 
14 namespace OpenMS
15 {
16 
22  {
25 
26 private:
29 
32 
33 public:
36 
39 
44  enum NormalizationMethod { NM_SCALE, NM_SHIFT };
45 
53  static void normalizeMaps(ConsensusMap & map, NormalizationMethod method, const String& acc_filter, const String& desc_filter);
54 
63  static Size computeMedians(const ConsensusMap & map, std::vector<double> & medians, const String& acc_filter, const String& desc_filter);
64 
74  static bool passesFilters_(ConsensusMap::ConstIterator cf_it, const ConsensusMap& map, const String& acc_filter, const String& desc_filter);
75  };
76 
77 } // namespace OpenMS
78 
Algorithms of ConsensusMapNormalizer.
Definition: ConsensusMapNormalizerAlgorithmMedian.h:22
NormalizationMethod
The NormalizationMethod enum Whether to scale to same median using division/multiplication or shift u...
Definition: ConsensusMapNormalizerAlgorithmMedian.h:44
@ NM_SCALE
Definition: ConsensusMapNormalizerAlgorithmMedian.h:44
ConsensusMapNormalizerAlgorithmMedian & operator=(const ConsensusMapNormalizerAlgorithmMedian &rhs)
assignment operator is not implemented -> private
static Size computeMedians(const ConsensusMap &map, std::vector< double > &medians, const String &acc_filter, const String &desc_filter)
computes medians of all maps and returns index of map with most features
static bool passesFilters_(ConsensusMap::ConstIterator cf_it, const ConsensusMap &map, const String &acc_filter, const String &desc_filter)
returns whether consensus feature passes filters returns whether consensus feature cf_it in map passe...
virtual ~ConsensusMapNormalizerAlgorithmMedian()
destructor is not implemented -> private
static void normalizeMaps(ConsensusMap &map, NormalizationMethod method, const String &acc_filter, const String &desc_filter)
normalizes the maps of the consensusMap
ConsensusMapNormalizerAlgorithmMedian()
default constructor is not implemented -> private
ConsensusMapNormalizerAlgorithmMedian(const ConsensusMapNormalizerAlgorithmMedian &copyin)
copy constructor is not implemented -> private
Algorithms of ConsensusMapNormalizer.
Definition: ConsensusMapNormalizerAlgorithmThreshold.h:21
A container for consensus elements.
Definition: ConsensusMap.h:66
const_iterator ConstIterator
Definition: ConsensusMap.h:114
A more convenient string class.
Definition: String.h:34
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