跳到正文
Bioinformatics·· 16 天前AI 评分58

MaldiSuite 发布:面向抗菌药物耐药研究的 MALDI-TOF 质谱 Python 工具集

MaldiSuite: a Python ecosystem for MALDI-TOF spectral processing and analysis in antimicrobial resistance research

AI 导读

MaldiSuite 是一个面向抗菌药物耐药(AMR)研究的 MALDI-TOF 质谱处理与分析 Python 工具集,基于共享数据模型和兼容 scikit-learn 的 API 构建。它整合三个包:MaldiAMRKit 负责 Bruker 原生与开放格式读写、可组合的标准化预处理、谱图 warping 和时间漂移监测;MaldiBatchKit 负责多中心批次校正,包含 MALDI 专用方法,并提供批次混合诊断;MaldiDeepKit 提供多层感知机、一维卷积神经网络、残差网络和 Vision Transformer 四类深度学习分类器。

阅读原文

来源:Bioinformatics · doi.org

论文摘要

Motivation

Antimicrobial resistance (AMR) is a major global health threat requiring faster diagnostics than the 24-48 h needed for phenotypic antibiotic-susceptibility testing. Matrix-assisted laser desorption/ionization time-of-flight (MALDI-TOF) mass spectrometry is widely used in clinical microbiology for species identification but does not directly capture AMR phenotypes. Machine learning on MALDI-TOF spectra offers a promising solution, yet existing software remains fragmented across legacy R preprocessing tools and ad hoc Python scripts, lacking standardized workflows, shared application programming interfaces (APIs), and safeguards against train-test leakage.

Results

We present MaldiSuite, a unified Python ecosystem built on a shared data model and a scikit-learn-compatible API. It integrates three packages: MaldiAMRKit (Bruker-native and open-format input/output, standardized composable preprocessing, spectral warping, and temporal drift monitoring); MaldiBatchKit (multi-site batch correction, including MALDI-specific methods, with batch-mixing diagnostics); and MaldiDeepKit (four deep-learning classifiers: multilayer perceptron, one-dimensional convolutional neural network, residual network, and Vision Transformer). All components compose within sklearn.pipeline.Pipeline with leak-safe fit/transform semantics. On the public multi-site Database of Resistance Information on Antimicrobials and MALDI-TOF Mass Spectra (DRIAMS), MaldiSuite achieves an area under the receiver operating characteristic curve of up to 0.92 on the DRIAMS-A Staphylococcus aureus/oxacillin task, and a leakage experiment quantifies the optimistic bias that its leak-safe cross-validation removes.

Availability and Implementation

MaldiSuite is available on PyPI under the MIT licence (pip install maldisuite). Source code: https://github.com/EttoreRocchi/MaldiSuite, https://github.com/EttoreRocchi/MaldiAMRKit, https://github.com/EttoreRocchi/MaldiBatchKit, https://github.com/EttoreRocchi/MaldiDeepKit. The package versions described here and the analysis code of this paper (https://github.com/EttoreRocchi/MaldiSuite-paper), with the pinned environments, are archived at 10.5281/zenodo.24199316.

Documentation

https://ettorerocchi.github.io/MaldiSuite/.

Supplementary information

Supplementary data are available at Bioinformatics online.