imzy¶
Read, inspect, process, and export imaging mass spectrometry datasets from Python. imzy provides a common reader interface for imzML, Bruker TSF/TDF/NeoFlex, and Waters MassLynx data.
pip install imzy
from imzy import get_reader
reader = get_reader("sample.imzML")
mzs, intensities = reader.get_spectrum(0)
image = reader.get_ion_image(734.569, ppm=10, silent=True)
Start with installation and the quickstart, which creates its own sample dataset. The user guide explains spectra and images, and the examples provide runnable scripts. Use the API reference for parameters, defaults, and return shapes.
Capabilities¶
- Read individual spectra, iterate pixels, and sum spectra over selected pixels.
- Extract single or multiple ion images with Da or ppm windows.
- Calculate normalization multipliers and export mass-targeted tables to HDF5 or Zarr.
- Convert supported inputs to imzML through Python or the command line.
- Choose the Rust or Python imzML backend.
See performance methodology, the recorded backend comparison, and interactive benchmark history.
Project¶
imzy is released under the BSD 3-Clause License. Report bugs on GitHub. See the repository's contribution guide and security policy.
These docs track main. A released PyPI version can differ from the current development version.