Native, Memory-Bounded Conversion of Mass Spectrometry Imaging Data into the SpatialData Ecosystem

IF 2.9 2区 化学 Q2 BIOCHEMICAL RESEARCH METHODS
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,&nbsp;Wouter-Michiel Vierdag,&nbsp;Luca Marconato,&nbsp;Angeliki Birmpili,&nbsp;Ron M.A. Heeren,&nbsp;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.

质谱成像数据到空间数据生态系统的本地、内存有限转换
质谱成像(MSI)现在是空间分子分析的常规方式,并且越来越多地与组织学,多重成像和空间转录组学相结合,以建立比任何单一技术都能提供的更丰富的组织描述。这种多模式模式的概念案例在十年前就已经解决了,但是大规模操作它所需的数据基础设施并没有跟上。供应商二进制文件和imzML交换格式将MSI排除在ome - ngff, Zarr和SpatialData堆栈之外,而其余的空间经济学已经融合在这些堆栈上,使得每个新实验都要从头开始重建ad - hocconverter。这里,我们介绍Thyra,一个开源python库,它可以将原始供应商和imzML MSI数据直接转换为SpatialData格式。两路流稀疏矩阵引擎将谱矩阵直接写入输出存储,无论数据集大小如何,峰值内存都保持在200 MB附近,并支持100+ GB的采集。在一个具有代表性的小鼠大脑MALDI数据集上,这产生了3到4倍的存储减少和一个数量级的m/z范围查询延迟改善,这是离子图像生成的瓶颈。一旦转换,MSI数据可以直接与反向分析生态系统组合;我们通过一个横向准备基准来量化这一点,其中空间自相关、像素聚类和邻域富集,所有空间转录组学中的标准操作,都作为一行代码在转换对象上运行。对牛皮癣患者皮肤活检的简要探索性分析说明了统一容器暴露的分析表面。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
5.50
自引率
9.40%
发文量
257
审稿时长
1 months
期刊介绍: 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
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书