OpenMS
Loading...
Searching...
No Matches
BrukerTimsImagingFile.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: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
12
13#ifdef WITH_OPENTIMS
14
20
21#include <vector>
22
23namespace OpenMS
24{
43 class OPENMS_DLLAPI BrukerTimsImagingFile : public ProgressLogger
44 {
45 public:
47 struct MaldiPixel
48 {
49 Int frame_id = 0;
50 Int x = 0;
51 Int y = 0;
52 };
53
55 struct Config
56 {
60 BrukerTimsFile::Config inner_config;
61
63 bool strict_imaging_only = true;
64 };
65
67 BrukerTimsImagingFile() = default;
68
80 void load(const std::string& path, MSImagingExperiment& exp);
81
94 void load(const std::string& path, MSImagingExperiment& exp, const Config& config);
95
107 static bool isImagingDataset(const std::string& path);
108
121 static std::vector<MaldiPixel> readMaldiFrameInfo(const std::string& d_folder);
122
131 static std::string readGlobalMetadataValue(const std::string& d_folder, const std::string& key);
132
133 private:
135 static void computeBoundingBox_(const std::vector<MaldiPixel>& rows,
136 Int& x_min, Int& y_min,
137 UInt& width, UInt& height);
138
140 static std::string resolveTdfPath_(const std::string& d_folder);
141 };
142
143} // namespace OpenMS
144
145#endif // WITH_OPENTIMS
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19