OpenMS
Loading...
Searching...
No Matches
ConsensusMapNormalizerAlgorithmRTLocal.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: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
13#include <string>
14#include <vector>
15
16namespace OpenMS
17{
18
51 {
52 public:
54 struct Settings
55 {
56 Size neighbors = 50;
57 Size rounds = 5;
58 Size min_maps = 3;
59 Size min_reference = 20;
60 };
61
77 static std::vector<std::vector<double>> computeOffsets(const ConsensusMap& map, const Settings& settings,
78 const std::string& acc_filter, const std::string& desc_filter);
79
91 static void normalizeMaps(ConsensusMap& map, const Settings& settings, const std::string& acc_filter, const std::string& desc_filter);
92 };
93
94} // namespace OpenMS
Normalizes the maps of a consensus map by a per-map offset that may vary with retention time.
Definition ConsensusMapNormalizerAlgorithmRTLocal.h:51
static std::vector< std::vector< double > > computeOffsets(const ConsensusMap &map, const Settings &settings, const std::string &acc_filter, const std::string &desc_filter)
Computes the log2 offset of every feature handle.
static void normalizeMaps(ConsensusMap &map, const Settings &settings, const std::string &acc_filter, const std::string &desc_filter)
Normalizes the maps of the consensus map: divides every feature handle's intensity by 2^offset.
Settings of the normalization (all of them at least 1)
Definition ConsensusMapNormalizerAlgorithmRTLocal.h:55
A container for consensus elements.
Definition ConsensusMap.h:67
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