OpenMS
Loading...
Searching...
No Matches
MapAlignerBase.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: Hendrik Weisser $
6// $Authors: Marc Sturm, Clemens Groepl, Hendrik Weisser $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
16
17#include <vector>
18
19//-------------------------------------------------------------
20// Doxygen docu
21//-------------------------------------------------------------
22
29// We do not want this class to show up in the docu:
31
32namespace OpenMS
33{
34 // @brief stores model defaults for map aligner algorithms
35 struct OPENMS_DLLAPI MapAlignerBase
36 {
37 static Param getModelDefaults(const std::string& default_model);
38 };
39
40
41class OPENMS_DLLAPI TOPPMapAlignerBase :
42 public TOPPBase, public MapAlignerBase
43{
44
45public:
46 TOPPMapAlignerBase(std::string name, std::string description, bool official = true) :
47 TOPPBase(name, description, official), ref_params_(REF_NONE)
48 {
49 }
50
51protected:
52
53 // Kind of reference parameters that the tool offers:
54 // - REF_NONE: no reference
55 // - REF_RESTRICTED: reference file must have same type as input files
56 // - REF_FLEXIBLE: reference file can have any supported file type
57 enum ReferenceParameterKind { REF_NONE, REF_RESTRICTED, REF_FLEXIBLE }
58 ref_params_;
59
60 void registerOptionsAndFlagsMapAligners_(const std::string& file_formats,
61 enum ReferenceParameterKind ref_params);
62
63 ExitCodes checkParameters_();
64
65 void transformSpectraFiles_(const StringList& in_spectra_files,
66 const StringList& out_spectra_files,
67 const std::vector<TransformationDescription>& transformations,
68 bool store_original_rt);
69
70};
71
72}
73
75
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19