6#include <OpenMS/config.h>
24 class FullSwathFileConsumer;
63 class OPENMS_DLLAPI BrukerTimsFile :
public ProgressLogger
69 double calibration_tolerance = 0.0;
70 bool calibrate =
false;
113 uint32_t frame_id_min = 0;
114 uint32_t frame_id_max = std::numeric_limits<uint32_t>::max();
124 double rt_min_sec = 0.0;
125 double rt_max_sec = std::numeric_limits<double>::infinity();
138 bool rt_selects_spectra =
false;
151 double im_max = std::numeric_limits<double>::infinity();
164 enum class CentroidAlgo { OFF, GREEDY2D, HILL_BASED };
169 CentroidAlgo ms1_centroid_algo = CentroidAlgo::OFF;
187 CentroidAlgo ms2_centroid_algo = CentroidAlgo::OFF;
189 float ms1_centroid_mz_ppm = 10.0f;
190 float ms1_centroid_im_pct = 0.0f;
191 int ms1_centroid_max_peaks = 100000;
193 float ms2_centroid_mz_ppm = 20.0f;
194 double centroid_valley_factor = 1.3;
195 Size ms1_centroid_min_hill_length = 1;
196 Size ms2_centroid_min_hill_length = 2;
197 Size centroid_max_scan_gap = 0;
198 bool expose_hill_bounds =
false;
209 bool isotopic_prefilter =
false;
210 double isotopic_prefilter_tol_ppm = 50.0;
212 int dia_ms2_n_neighbors = 0;
213 int dia_ms2_min_support = 1;
214 bool dia_ms2_centroid =
false;
216 int ms1_n_neighbors = 0;
219 int ms1_min_support = 0;
223 double ms1_max_rt_distance_sec = 0.0;
229 enum ExportMode { AUTO, SPECTRUM, FRAME };
230 ExportMode export_mode = AUTO;
251 enum class TimsCalibrationStrategy { AUTO, BRUKER_SDK, RATIONAL, LINEAR };
252 TimsCalibrationStrategy tims_calibration_strategy = TimsCalibrationStrategy::AUTO;
257 enum class PressureCompensation {
NONE, GLOBAL, PER_FRAME };
258 PressureCompensation pressure_compensation = PressureCompensation::NONE;
262 std::string bruker_sdk_path;
266 enum class DataFormat
283 static DataFormat detectFormat(
const std::string& path);
292 static void checkDataFormat(
const std::string& path);
295 struct DIAStreamingMetadata
297 std::vector<OpenSwath::SwathMap> boundaries;
298 int nr_ms1_spectra = 0;
299 std::vector<int> nr_ms2_spectra;
304 DIAStreamingMetadata readDIAMetadata(
const std::string& path, ExperimentalSettings& exp_settings);
306 DIAStreamingMetadata readDIAMetadata(
const std::string& path, ExperimentalSettings& exp_settings,
307 const Config& config);
312 void loadDIAStreaming(
const std::string& path, FullSwathFileConsumer& consumer);
314 void loadDIAStreaming(
const std::string& path, FullSwathFileConsumer& consumer,
315 const Config& config);
325 void load(
const std::string& path, MSExperiment& exp);
327 void load(
const std::string& path, MSExperiment& exp,
const Config& config);
343 void transform(
const std::string& path, Interfaces::IMSDataConsumer* consumer);
345 void transform(
const std::string& path, Interfaces::IMSDataConsumer* consumer,
const Config& config);
349 using SpectrumSink = std::function<void(MSSpectrum&)>;
352 DIAStreamingMetadata readDIAMetadata_(
const std::string& path, ExperimentalSettings& exp_settings,
const Config& config);
353 void loadDIAStreaming_(
const std::string& path, FullSwathFileConsumer& consumer,
const Config& config);
354 void load_(
const std::string& path, MSExperiment& exp,
const Config& config);
355 void transform_(
const std::string& path, Interfaces::IMSDataConsumer* consumer,
const Config& config);
361 void loadDDA_(TimsDataHandle& handle,
const SpectrumSink& sink,
const Config& config);
364 void loadDIA_(TimsDataHandle& handle,
const SpectrumSink& sink,
const Config& config);
367 void loadFrames_(TimsDataHandle& handle,
const SpectrumSink& sink,
const Config& config);
371 void loadExperimentalSettings_(
const std::string& path,
const std::string& d_path, ExperimentalSettings& settings);
374 struct UnpackedArchive;
377 static std::shared_ptr<UnpackedArchive> unpack_(
const std::string& path);
381 std::shared_ptr<UnpackedArchive> takeUnpacked_(
const std::string& path);
384 std::shared_ptr<UnpackedArchive> unpacked_;
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