OnDiscImzMLExperiment#
- class pyopenms.OnDiscImzMLExperiment#
Bases:
objectRandom-access on-disc reader for imzML (.imzML + .ibd), analogous to OnDiscMSExperiment for indexed mzML.
- __init__() None#
Methods
__init__()close()Close the companion .ibd file and release on-disc resources
extractIonImage(mz, tolerance_ppm)Overloaded function.
Return a copy of the dataset-level ExperimentalSettings parsed during open() (instrument, sample, imzml:* MetaValues)
Return the shared 2D MSImagingGeometry (0-based pixel grid + (x,y)->spectrum index), built lazily from the index
Return dataset-level ImzMLMeta parsed during open()
getIndex(i)Return ImzMLSpectrumIndex entry without reading .ibd peak data
getSpectrum(i)getSpectrumAtCoord(x, y[, z])isOpen()open(imzml_path[, ibd_path, skip_metadata])Open imzML index and companion .ibd file; skip_metadata keeps no spectrum metadata (getSpectrum returns peaks, arrays and imzml:x/y/z only)
size()- close() None#
Close the companion .ibd file and release on-disc resources
- extractIonImage(mz: float, tolerance_ppm: float) pyopenms.IonImage#
- extractIonImage(mz: float, tolerance_ppm: float, region_id: int) pyopenms.IonImage
Overloaded function.
extractIonImage(mz: float, tolerance_ppm: float) -> pyopenms.IonImage
Extract a single-mass ion image over the whole dataset by summing intensities in [mz - dm, mz + dm] (dm = mz * tolerance_ppm * 1e-6), decoding each pixel from the .ibd on demand
extractIonImage(mz: float, tolerance_ppm: float, region_id: int) -> pyopenms.IonImage
Extract a single-mass ion image restricted to one region, decoding each pixel from the .ibd on demand
- getExperimentalSettings() pyopenms.ExperimentalSettings#
Return a copy of the dataset-level ExperimentalSettings parsed during open() (instrument, sample, imzml:* MetaValues)
- getGeometry() pyopenms.MSImagingGeometry#
Return the shared 2D MSImagingGeometry (0-based pixel grid + (x,y)->spectrum index), built lazily from the index
- getImzMLMeta() pyopenms.ImzMLMeta#
Return dataset-level ImzMLMeta parsed during open()
- getIndex(i: int) pyopenms.ImzMLSpectrumIndex#
Return ImzMLSpectrumIndex entry without reading .ibd peak data
- getNrSpectra() int#
- getSpectrum(i: int) pyopenms.MSSpectrum#
- getSpectrumAtCoord(x: int, y: int, z: int = 1) pyopenms.MSSpectrum#
- gridHeight() int#
- gridWidth() int#
- isOpen() bool#
- open(imzml_path: str, ibd_path: str = '', skip_metadata: bool = False) None#
Open imzML index and companion .ibd file; skip_metadata keeps no spectrum metadata (getSpectrum returns peaks, arrays and imzml:x/y/z only)
- size() int#