Theodoros Visvikis, Wouter-Michiel Vierdag, Luca Marconato, Angeliki Birmpili, Ron M.A. Heeren, Eva Cuypers
{"title":"Native, Memory-Bounded Conversion of Mass Spectrometry Imaging Data into the SpatialData Ecosystem","authors":"Theodoros Visvikis, Wouter-Michiel Vierdag, Luca Marconato, Angeliki Birmpili, Ron M.A. Heeren, Eva Cuypers","doi":"10.1021/jasms.6c00169","DOIUrl":null,"url":null,"abstract":"<p>Mass\r\nspectrometry imaging (MSI) is now a routine modality for spatial\r\nmolecular profiling and is increasingly combined with histology, multiplexed\r\nimaging, and spatial transcriptomics to build richer descriptions\r\nof tissue than any single technique can provide. The conceptual case\r\nfor this multimodal paradigm was settled a decade ago, but the data\r\ninfrastructure needed to operationalize it at scale has not kept up.\r\nVendor binaries and the imzML exchange format keep MSI outside the\r\nOME-NGFF, Zarr, and SpatialData stacks on which the rest of spatial\r\nomics has converged, leaving each new experiment to rebuild ad hoc\r\nconverters from scratch. Here, we present Thyra, an open-source Python\r\nlibrary that converts raw vendor and imzML MSI data directly into\r\nthe SpatialData format. A two-pass streaming sparse matrix engine\r\nwrites the spectral matrix straight into the output Zarr store, keeping\r\npeak memory bounded near 200 MB regardless of data set size and supporting\r\n100+ GB acquisitions. On a representative mouse brain MALDI data\r\nset, this yields three- to 4-fold storage reductions and an order-of-magnitude\r\nimprovement in <em>m</em>/<em>z</em> range query latency,\r\nthe bottleneck for ion image generation. Once converted, MSI data\r\nare directly composable with the scverse analysis ecosystem; we quantify\r\nthis with an scverse readiness benchmark in which spatial autocorrelation,\r\npixel clustering, and neighborhood enrichment, all standard operations\r\nin spatial transcriptomics, run as a one-liner on the converted object.\r\nA brief exploratory analysis of a skin biopsy from a psoriasis patient\r\nillustrates the analytical surface that the unified container exposes.</p>","PeriodicalId":672,"journal":{"name":"Journal of the American Society for Mass Spectrometry","volume":"37 10","pages":"2379–2387"},"PeriodicalIF":2.9000,"publicationDate":"2026-10-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the American Society for Mass Spectrometry","FirstCategoryId":"92","ListUrlMain":"https://pubs.acs.org/doi/10.1021/jasms.6c00169","RegionNum":2,"RegionCategory":"化学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/9/22 0:00:00","PubModel":"Epub","JCR":"Q2","JCRName":"BIOCHEMICAL RESEARCH METHODS","Score":null,"Total":0}
引用次数: 0
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.
期刊介绍:
The Journal of the American Society for Mass Spectrometry presents research papers covering all aspects of mass spectrometry, incorporating coverage of fields of scientific inquiry in which mass spectrometry can play a role.
Comprehensive in scope, the journal publishes papers on both fundamentals and applications of mass spectrometry. Fundamental subjects include instrumentation principles, design, and demonstration, structures and chemical properties of gas-phase ions, studies of thermodynamic properties, ion spectroscopy, chemical kinetics, mechanisms of ionization, theories of ion fragmentation, cluster ions, and potential energy surfaces. In addition to full papers, the journal offers Communications, Application Notes, and Accounts and Perspectives