11#include <OpenMS/OpenMSConfig.h>
41 uint32_t max_count_x {0};
42 uint32_t max_count_y {0};
43 uint32_t max_count_z {1};
44 double pixel_size_x {0};
45 double pixel_size_y {0};
103 uint64_t mz_offset {0};
104 uint64_t mz_length {0};
106 uint64_t int_offset {0};
107 uint64_t int_length {0};
135 std::vector<double>& out,
136 const std::string& ibd_path);
147 std::vector<float>& out,
148 const std::string& ibd_path);
158 const std::string& ibd_path);
166 const std::vector<double>& mz,
167 const std::string& ibd_path);
177 const std::string& ibd_path);
185 const std::vector<double>& mz,
186 const std::string& ibd_path);
Shared .ibd binary array decode utilities for imzML handlers.
Definition ImzMLHandlerHelper.h:117
static void readMzArray(FILE *ibd, uint64_t offset, uint64_t count, ImzMLSpectrumIndex::DataType dt, std::vector< double > &out, const std::string &ibd_path)
Read an m/z array from the companion .ibd file.
static void writeFloat32Array(FILE *ibd, const float *data, uint64_t count, const std::string &ibd_path)
Write a float32 array to the companion .ibd file (little-endian).
static void writeMzAsFloat32(FILE *ibd, const std::vector< double > &mz, const std::string &ibd_path)
Write m/z values as float32 to the companion .ibd file.
static void writeMzAsFloat64(FILE *ibd, const std::vector< double > &mz, const std::string &ibd_path)
Write m/z values as float64 to the companion .ibd file.
static void readIntArray(FILE *ibd, uint64_t offset, uint64_t count, ImzMLSpectrumIndex::DataType dt, std::vector< float > &out, const std::string &ibd_path)
Read an intensity array from the companion .ibd file.
static void writeFloat64Array(FILE *ibd, const double *data, uint64_t count, const std::string &ibd_path)
Write a float64 array to the companion .ibd file (little-endian).
@ UNKNOWN
Unknown or unrecognized ion type.
std::string int_data_type
same set as mz_data_type
Definition ImzMLHandlerHelper.h:70
std::string scan_pattern
"top down" | "bottom up" (IMS:1000401/402)
Definition ImzMLHandlerHelper.h:76
std::string mz_data_type
"float32" | "float64" | "int32" | "int64"
Definition ImzMLHandlerHelper.h:69
std::string line_scan_direction
"left-right" | "right-left" (IMS:1000491/492)
Definition ImzMLHandlerHelper.h:78
std::string polarity
"positive" | "negative" (MS:1000130/129)
Definition ImzMLHandlerHelper.h:79
std::string uuid
Dataset UUID (IMS:1000080)
Definition ImzMLHandlerHelper.h:63
std::string imaging_mode
"continuous" (shared m/z array) or "processed" (per-spectrum m/z).
Definition ImzMLHandlerHelper.h:54
std::string scan_direction
"flyback" | "meander" | "horizontal" | "vertical"
Definition ImzMLHandlerHelper.h:77
std::string ibd_md5
MD5 checksum (IMS:1000090), empty if absent.
Definition ImzMLHandlerHelper.h:62
std::string ibd_file_path
Absolute path to the .ibd file.
Definition ImzMLHandlerHelper.h:60
std::string ibd_sha1
SHA-1 checksum (IMS:1000091), empty if absent.
Definition ImzMLHandlerHelper.h:61
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Per-spectrum binary index entry for an imzML dataset.
Definition ImzMLHandlerHelper.h:95
DataType
Scalar type identifier for binary array elements.
Definition ImzMLHandlerHelper.h:97