OpenMS
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 
16 namespace OpenMS
17 {
18 
19  class OPENMS_DLLAPI MapConversion
20  {
21 public:
22 
36  static void convert(UInt64 const input_map_index,
37  PeakMap& input_map,
38  ConsensusMap& output_map,
39  Size n = -1);
40 
51  static void convert(ConsensusMap const& input_map,
52  const bool keep_uids,
53  FeatureMap& output_map);
54 
74  static void convert(UInt64 const input_map_index,
75  FeatureMap const& input_map,
76  ConsensusMap& output_map,
77  Size n = -1);
78  };
79 } // namespace OpenMS
80 
A container for consensus elements.
Definition: ConsensusMap.h:66
A container for features.
Definition: FeatureMap.h:80
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
Definition: ConversionHelper.h:20
static void convert(UInt64 const input_map_index, PeakMap &input_map, ConsensusMap &output_map, Size n=-1)
Similar to convert for FeatureMaps.
static void convert(UInt64 const input_map_index, FeatureMap const &input_map, ConsensusMap &output_map, Size n=-1)
Convert a FeatureMap (of any feature type) to a ConsensusMap.
static void convert(ConsensusMap const &input_map, const bool keep_uids, FeatureMap &output_map)
Convert a ConsensusMap to a FeatureMap (of any feature type).
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