OpenMS
Loading...
Searching...
No Matches
ConsensusMapNormalizerAlgorithmQuantile.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: Johannes Veit $
6// $Authors: Johannes Junker $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
13namespace OpenMS
14{
15
30 {
31private:
34
37
38public:
41
44
69 static void normalizeMaps(ConsensusMap & map);
70
92 static void resample(const std::vector<double> & data_in, std::vector<double> & data_out, UInt n_resampling_points);
93
112 static void extractIntensityVectors(const ConsensusMap & map, std::vector<std::vector<double> > & out_intensities);
113
131 static void setNormalizedIntensityValues(const std::vector<std::vector<double> > & feature_ints, ConsensusMap & map);
132 };
133
134} // namespace OpenMS
135
Quantile-normalisation of feature intensities across the maps of a ConsensusMap.
Definition ConsensusMapNormalizerAlgorithmQuantile.h:30
static void resample(const std::vector< double > &data_in, std::vector< double > &data_out, UInt n_resampling_points)
Linearly resample data_in to n_resampling_points evenly-spaced positions.
ConsensusMapNormalizerAlgorithmQuantile(const ConsensusMapNormalizerAlgorithmQuantile &copyin)
Copy construction is deliberately suppressed.
ConsensusMapNormalizerAlgorithmQuantile & operator=(const ConsensusMapNormalizerAlgorithmQuantile &rhs)
Assignment is deliberately suppressed.
ConsensusMapNormalizerAlgorithmQuantile()
Default constructor.
static void normalizeMaps(ConsensusMap &map)
Quantile-normalise the feature intensities of map in place.
static void extractIntensityVectors(const ConsensusMap &map, std::vector< std::vector< double > > &out_intensities)
Collect the feature-handle intensities of map into one vector per source map.
static void setNormalizedIntensityValues(const std::vector< std::vector< double > > &feature_ints, ConsensusMap &map)
Push the per-map intensity vectors back into the corresponding feature handles.
virtual ~ConsensusMapNormalizerAlgorithmQuantile()
Destructor.
A container for consensus elements.
Definition ConsensusMap.h:67
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19