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
11#include <OpenMS/APPLICATIONS/OpenMS_CLIConfig.h>
12
14
18
19#include <vector>
20
21//-------------------------------------------------------------
22// Doxygen docu
23//-------------------------------------------------------------
24
31// We do not want this class to show up in the docu:
33
34namespace OpenMS
35{
37 struct OPENMS_CLI_DLLAPI MapAlignerBase
38 {
39 static Param getModelDefaults(const std::string& default_model);
40 };
41
42
43class OPENMS_CLI_DLLAPI TOPPMapAlignerBase :
44 public TOPPBase, public MapAlignerBase
45{
46
47public:
48 TOPPMapAlignerBase(std::string name, std::string description) :
49 TOPPBase(name, description), ref_params_(REF_NONE)
50 {
51 }
52
53protected:
54
55 // Kind of reference parameters that the tool offers:
56 // - REF_NONE: no reference
57 // - REF_RESTRICTED: reference file must have same type as input files
58 // - REF_FLEXIBLE: reference file can have any supported file type
59 enum ReferenceParameterKind { REF_NONE, REF_RESTRICTED, REF_FLEXIBLE }
60 ref_params_;
61
62 void registerOptionsAndFlagsMapAligners_(const std::string& file_formats,
63 enum ReferenceParameterKind ref_params);
64
65 ExitCodes checkParameters_();
66
67 void transformSpectraFiles_(const StringList& in_spectra_files,
68 const StringList& out_spectra_files,
69 const std::vector<TransformationDescription>& transformations,
70 bool store_original_rt);
71
72};
73
74}
75
77
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19