OpenMS
Loading...
Searching...
No Matches
ThermoRawFile.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: Julianus Pfeuffer $
6// $Authors: Julianus Pfeuffer $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
12
13#ifdef WITH_THERMO_RAW
14
17
18#include <limits>
19#include <vector>
20
21namespace OpenMS
22{
23 namespace Interfaces
24 {
25 class IMSDataConsumer;
26 }
27
61 class OPENMS_DLLAPI ThermoRawFile : public ProgressLogger
62 {
63 public:
65 struct Options
66 {
67 bool centroid = false;
68 bool charge_data = false;
69 bool noise_data = false;
70 bool all_detectors = false;
71 bool preserve_trailers = true;
72 bool instrument_methods = true;
73 bool checksum = true;
74
81 int first_scan = 0;
82 int last_scan = 0;
83 double rt_min = -std::numeric_limits<double>::infinity();
84 double rt_max = std::numeric_limits<double>::infinity();
85 std::vector<int> ms_levels;
87 double precursor_mz_min = -std::numeric_limits<double>::infinity();
88 double precursor_mz_max = std::numeric_limits<double>::infinity();
90
98 bool metadata_only = false;
99 bool skip_chromatograms = false;
100 };
101
103 const Options& getOptions() const { return options_; }
105 void setOptions(const Options& options) { options_ = options; }
121 void load(const std::string& path, MSExperiment& exp);
122
152 void transform(const std::string& path, Interfaces::IMSDataConsumer* consumer);
153
154 private:
155 Options options_;
156 };
157
158} // namespace OpenMS
159
160#endif // WITH_THERMO_RAW
IMSDataConsumer IMSDataConsumer
Definition IMSDataConsumer.h:103
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19