Related Experiment Video
Updated: Jul 1, 2025

Sample Preparation Strategies for Mass Spectrometry Imaging of 3D Cell Culture Models
Published on: December 5, 2014
pyM2aia: Python interface for mass spectrometry imaging with focus on deep learning
Jonas Cordes1,2, Thomas Enzlein3, Carsten Hopf2,3,4
1Faculty of Computer Science, Mannheim University of Applied Sciences, Mannheim 68163, Germany.
Summary:
Python is the most commonly used language for deep learning (DL). Existing Python packages for mass spectrometry imaging (MSI) data are not optimized for DL tasks. We, therefore, introduce pyM2aia, a Python package for MSI data analysis with a focus on memory-efficient handling, processing and convenient data-access for DL applications. pyM2aia provides interfaces to its parent application M2aia, which offers interactive capabilities for exploring and annotating MSI data in imzML format. pyM2aia utilizes the image input and output routines, data formats, and processing functions of M2aia, ensures data interchangeability, and enables the writing of readable and easy-to-maintain DL pipelines by providing batch generators for typical MSI data access strategies. We showcase the package in several examples, including imzML metadata parsing, signal processing, ion-image generation, and, in particular, DL model training and inference for spectrum-wise approaches, ion-image-based approaches, and approaches that use spectral and spatial information simultaneously.
Availability And Implementation:
Python package, code and examples are available at (https://m2aia.github.io/m2aia).
More Related Videos
08:16Optimal Preparation of Formalin Fixed Samples for Peptide Based Matrix Assisted Laser Desorption/Ionization Mass Spectrometry Imaging Workflows
Published on: January 16, 2018
10:47Whole-body Mass Spectrometry Imaging by Infrared Matrix-assisted Laser Desorption Electrospray Ionization IR-MALDESI
Published on: March 24, 2016
Related Concept Videos
Mass Spectrometry: Complex Analysis
GC–MS is a powerful hyphenated method commonly used in forensics and environmental...
Mass Spectrometers
Matrix-Assisted Laser Desorption Ionization (MALDI)
The analyte of interest, a biomolecule or a mixture of biomolecules, is mixed with a suitable matrix material. The...
Mass Analyzers: Overview
Inductively Coupled Plasma–Mass Spectrometry (ICP–MS): Overview
Peptide Identification Using Tandem Mass Spectrometry
This technique helps gather information regarding the protein from which the peptide was obtained and to study the peptides’ amino acid sequence. Identifying peptides from a complex mixture is an important component of the growing field of...