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
85 void load(const std::string& path, MSImagingExperiment& exp);
86
104 void load(const std::string& path, MSImagingExperiment& exp, const Config& config);
105
117 static bool isImagingDataset(const std::string& path);
118
131 static std::vector<MaldiPixel> readMaldiFrameInfo(const std::string& d_folder);
132
141 static std::string readGlobalMetadataValue(const std::string& d_folder, const std::string& key);
142
143 private:
145 static void computeBoundingBox_(const std::vector<MaldiPixel>& rows,
146 Int& x_min, Int& y_min,
147 UInt& width, UInt& height);
148
150 static std::string resolveTdfPath_(const std::string& d_folder);
151 };
152
153} // namespace OpenMS
154
155#endif // WITH_OPENTIMS
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19