OpenMS
Loading...
Searching...
No Matches
ConversionHelper.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
15
16namespace OpenMS
17{
18
35 class OPENMS_DLLAPI MapConversion
36 {
37public:
38
61 static void convert(UInt64 const input_map_index,
62 PeakMap& input_map,
63 ConsensusMap& output_map,
64 Size n = -1);
65
82 static void convert(ConsensusMap const& input_map,
83 const bool keep_uids,
84 FeatureMap& output_map);
85
113 static void convert(UInt64 const input_map_index,
114 FeatureMap const& input_map,
115 ConsensusMap& output_map,
116 Size n = -1);
117 };
118} // namespace OpenMS
119
A container for consensus elements.
Definition ConsensusMap.h:67
A container for features.
Definition FeatureMap.h:78
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
Static helpers that convert between the three OpenMS container types (PeakMap, FeatureMap,...
Definition ConversionHelper.h:36
static void convert(UInt64 const input_map_index, PeakMap &input_map, ConsensusMap &output_map, Size n=-1)
Copy the most intense peaks of a PeakMap into a ConsensusMap.
static void convert(UInt64 const input_map_index, FeatureMap const &input_map, ConsensusMap &output_map, Size n=-1)
Convert a FeatureMap to a ConsensusMap.
static void convert(ConsensusMap const &input_map, const bool keep_uids, FeatureMap &output_map)
Convert a ConsensusMap to a FeatureMap.
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
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