18#include <OpenMS/OpenMSConfig.h>
27 class MSImagingExperiment;
28 class MSImagingGeometry;
176 std::vector<ImzMLSpectrumIndex>& index,
177 const std::string& ibd_path =
"");
189 bool isValid(
const std::string& filename, std::ostream& os);
243 std::vector<ImzMLSpectrumIndex>* out_index,
245 const std::string& ibd_path_override =
"");
File adapter for imzML 1.1.0 mass spectrometry imaging data.
Definition ImzMLFile.h:71
void loadSpectraIndex(const std::string &filename, ImzMLMeta &meta, std::vector< ImzMLSpectrumIndex > &index, const std::string &ibd_path="")
Parse XML and build a per-spectrum .ibd index without loading peaks.
void setOptions(const PeakFileOptions &options)
const PeakFileOptions & getOptions() const
~ImzMLFile() override=default
PeakFileOptions options_
Definition ImzMLFile.h:249
static void buildImagingGeometry(const std::vector< ImzMLSpectrumIndex > &index, const ImzMLMeta &meta, MSImagingGeometry &geom)
Build MSImagingGeometry directly from a parsed imzML spectrum index.
void loadImpl_(const std::string &filename, Interfaces::IMSDataConsumer *consumer, MSExperiment &meta_exp, ImzMLMeta *out_meta, std::vector< ImzMLSpectrumIndex > *out_index, bool index_only, const std::string &ibd_path_override="")
void load(const std::string &filename, MSImagingExperiment &exp)
Load an imzML file into an MSImagingExperiment for in-memory random access.
bool isValid(const std::string &filename, std::ostream &os)
Validate an imzML file against the mzML 1.1.0 XML schema.
void store(const std::string &filename, const MSImagingExperiment &exp) const
Store an MSImagingExperiment as imzML, taking pixel coordinates and grid dimensions from its MSImagin...
PeakFileOptions & getOptions()
static std::string inferIbdPath_(const std::string &imzml_path)
void load(const std::string &filename, Interfaces::IMSDataConsumer &consumer)
Stream-load an imzML file into a consumer.
void store(const std::string &filename, const MSExperiment &exp) const
Store an experiment as imzML (XML + companion .ibd).
static void buildImagingGeometry(const MSExperiment &exp, MSImagingGeometry &geom)
Build MSImagingGeometry from a loaded imzML MSExperiment.
The interface of a consumer of spectra and chromatograms.
Definition IMSDataConsumer.h:46
Base class for loading and storing XML files via Xerces, with optional schema validation and transpar...
Definition XMLFile.h:38
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
In-memory model for a 2D imaging mass spectrometry dataset.
Definition MSImagingExperiment.h:30
Pixel grid metadata and (x, y) -> spectrum_index lookup for MSI data.
Definition MSImagingGeometry.h:31
Options for loading files containing peak data.
Definition PeakFileOptions.h:22
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19