Related Experiment Video
Updated: May 11, 2026

Imaging of Biological Tissues by Desorption Electrospray Ionization Mass Spectrometry
Published on: July 12, 2013
imzML Writer: An Easy-to-Use Python Pipeline for Conversion of Continuously Acquired Raw Mass Spectrometry Imaging
Joseph Monaghan1, Kiera Nguyen1, Nicholas Woytowich1,2
1Department of Chemistry, Vancouver Island University, 900 Fifth Street, Nanaimo, British Columbia, Canada V9R 5S5.
Abstract:
Mass spectrometry imaging (MSI) is a technique that uncovers the contextual distribution of biomolecules in tissue. This involves collecting large data sets with information-rich mass spectra in each pixel. To streamline image processing and interpretation, the MSI community has developed toolboxes for image preprocessing, segmentation, statistical analysis, and visualization. These generally require data to be input as imzML files, an Extensible Markup Language file with vocabulary for mass spectrometry and imaging-specific parameters. While commercial systems (e.g., MALDI) come with proprietary file converters, to our knowledge, no open-access user-friendly converters exist for continuously acquired imaging data (e.g., nano-DESI, DESI). Here, we present imzML Writer, an easy-to-use Python application with a graphical user interface to convert data from vendor format into pixel-aligned imzML files. We package this application with imzML Scout, allowing visualization of the resulting file(s) and batch export of ion images across a range of image and data formats (e.g., PNG, TIF, CSV). To demonstrate the utility of files generated by imzML Writer, we processed nano-DESI data with popular tools such as Cardinal MSI and METASPACE. Overall, this work provides a simple open-access tool for emerging MSI modality users to access advanced MSI processing tools reliant on imzML format. ImzML Writer is available as a distributable Python package via pip or as a standalone program for Mac and PC at https://github.com/VIU-Metabolomics/imzML_Writer.
Related Concept Videos
Mass Spectrometry: Overview
Mass Spectrometers
MALDI-TOF Mass Spectrometry
Mass Spectrum: Interpretation
Inductively Coupled Plasma–Mass Spectrometry (ICP–MS): Overview
Matrix-Assisted Laser Desorption Ionization (MALDI)

