Native, Memory-Bounded Conversion of Mass Spectrometry Imaging Data into the SpatialData Ecosystem.
Theodoros Visvikis, Wouter-Michiel Vierdag, Luca Marconato, Angeliki Birmpili, Ron M A Heeren, Eva Cuypers
The Maastricht MultiModal Molecular Imaging (M4I) Institute, Division of Imaging Mass Spectrometry (IMS), Maastricht University, Maastricht6229 ER, The Netherlands. · European Molecular Biology Laboratory, Genome Biology Unit, Heidelberg69117, Germany.
Key points
From the paper's conclusion- Here, we present Thyra, an open-source Python library that converts raw vendor and imzML MSI data directly into the SpatialData format.
Abstract
Mass spectrometry imaging (MSI) is now a routine modality for spatial molecular profiling and is increasingly combined with histology, multiplexed imaging, and spatial transcriptomics to build richer descriptions of tissue than any single technique can provide. The conceptual case for this multimodal paradigm was settled a decade ago, but the data infrastructure needed to operationalize it at scale has not kept up. Vendor binaries and the imzML exchange format keep MSI outside the OME-NGFF, Zarr, and SpatialData stacks on which the rest of spatial omics has converged, leaving each new experiment to rebuild ad hoc converters from scratch. Here, we present Thyra, an open-source Python library that converts raw vendor and imzML MSI data directly into the SpatialData format. A two-pass streaming sparse matrix engine writes the spectral matrix straight into the output Zarr store, keeping peak memory bounded near 200 MB regardless of data set size and supporting 100+ GB acquisitions. On a representative mouse brain MALDI data set, this yields three- to 4-fold storage reductions and an order-of-magnitude improvement in m/z range query latency, the bottleneck for ion image generation. Once converted, MSI data are directly composable with the scverse analysis ecosystem; we quantify this with an scverse readiness benchmark in which spatial autocorrelation, pixel clustering, and neighborhood enrichment, all standard operations in spatial transcriptomics, run as a one-liner on the converted object. A brief exploratory analysis of a skin biopsy from a psoriasis patient illustrates the analytical surface that the unified container exposes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CPMsi: a data-driven Computational Pipeline for fast, large-scale Mass Spectrometry Imaging analysisbioRxiv · 2026
- mspix: A Data Format for High Pixel Count Mass Spectral Images.Journal of the American Society for Mass Spectrometry · 2026
- spatialMET: an open and scalable framework for spatial metabolomics analysis.bioRxiv : the preprint server for biology · 2026
- Truthful visualizations for mass spectrometry imaging enable high-spatial-resolution interactive m/z mapping and exploration.Science advances · 2026
- Computational Mass Spectrometry Imaging in the Era of AI.Chemical reviews · 2026
- mzPeak: Designing a Scalable, Interoperable, and Future-Ready Mass Spectrometry Data FormatJournal of Proteome Research · 2025