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
56 class OPENMS_DLLAPI ThermoRawFile : public ProgressLogger
57 {
58 public:
60 struct Options
61 {
62 bool centroid = false;
63 bool charge_data = false;
64 bool noise_data = false;
65 bool all_detectors = false;
66 bool preserve_trailers = true;
67 bool instrument_methods = true;
68 bool checksum = true;
69
76 int first_scan = 0;
77 int last_scan = 0;
78 double rt_min = -std::numeric_limits<double>::infinity();
79 double rt_max = std::numeric_limits<double>::infinity();
80 std::vector<int> ms_levels;
82 double precursor_mz_min = -std::numeric_limits<double>::infinity();
83 double precursor_mz_max = std::numeric_limits<double>::infinity();
85
93 bool metadata_only = false;
94 bool skip_chromatograms = false;
95 };
96
98 const Options& getOptions() const { return options_; }
100 void setOptions(const Options& options) { options_ = options; }
114 void load(const std::string& path, MSExperiment& exp);
115
143 void transform(const std::string& path, Interfaces::IMSDataConsumer* consumer);
144
145 private:
146 Options options_;
147 };
148
149} // namespace OpenMS
150
151#endif // WITH_THERMO_RAW
IMSDataConsumer IMSDataConsumer
Definition IMSDataConsumer.h:103
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19