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};
121 uint64_t encoded_bytes {0};
123 bool compressed {
false};
130 uint64_t mz_offset {0};
131 uint64_t mz_length {0};
133 bool mz_compressed {
false};
134 uint64_t int_offset {0};
135 uint64_t int_length {0};
137 bool int_compressed {
false};
138 std::vector<AuxArray>
aux;
165 std::vector<double>& out,
166 const std::string& ibd_path);
177 std::vector<float>& out,
178 const std::string& ibd_path);
208 std::vector<float>& out,
209 const std::string& ibd_path,
210 const std::string& array_name);
220 const std::string& ibd_path);
228 const std::vector<double>& mz,
229 const std::string& ibd_path);
239 const std::string& ibd_path);
247 const std::vector<double>& mz,
248 const std::string& ibd_path);
Shared .ibd binary array decode utilities for imzML handlers.
Definition ImzMLHandlerHelper.h:147
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 readAuxArray(FILE *ibd, uint64_t offset, uint64_t count, ImzMLSpectrumIndex::DataType dt, std::vector< float > &out, const std::string &ibd_path, const std::string &array_name)
Read an auxiliary (non-m/z, non-intensity) array from the .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:103
std::vector< AuxArray > aux
Extra external arrays (IM, …) in document order.
Definition ImzMLHandlerHelper.h:138
std::string unit_accession
unitAccession on the array-identity cvParam (may be empty)
Definition ImzMLHandlerHelper.h:118
DataType
Scalar type identifier for binary array elements.
Definition ImzMLHandlerHelper.h:105
std::string name
Ontology / free-text array name (FloatDataArray::getName)
Definition ImzMLHandlerHelper.h:116
std::string accession
MS accession (e.g. MS:1003006), may be empty.
Definition ImzMLHandlerHelper.h:117
Index entry for one auxiliary (non-m/z, non-intensity) external array.
Definition ImzMLHandlerHelper.h:115