Oct 09, 2023

Public workspaceMSI-Explorer - a napari plug-in for biochemical annotation of mass spectrometry imaging data

  • Nay Min Min Thaw Saw1,
  • Lennart Kowitz2,
  • Peter Lampen2,
  • Karl W Smith1,
  • Jianxu Chen2,
  • PRASAD PHAPALE1
  • 1Leibniz-Institut für Analytische Wissenschaften – ISAS – e.V., Otto-Hahn Str 6b, 44227 Dortmund, Germany;
  • 2Leibniz-Institut für Analytische Wissenschaften – ISAS – e.V. (City), Bunsen-Kirchhoff-Str. 11 44139 Dortmund
Icon indicating open access to content
QR code linking to this content
Protocol CitationNay Min Min Thaw Saw, Lennart Kowitz, Peter Lampen, Karl W Smith, Jianxu Chen, PRASAD PHAPALE 2023. MSI-Explorer - a napari plug-in for biochemical annotation of mass spectrometry imaging data. protocols.io https://dx.doi.org/10.17504/protocols.io.n2bvj3dyplk5/v1
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: Working
We use this protocol and it's working
Created: September 22, 2023
Last Modified: October 09, 2023
Protocol Integer ID: 88187
Keywords: Mass spectrometry imaging, napari, targeted metabolomics, metaboloites and lipids annotation
Funders Acknowledgement:
CZI napari Plugin Foundations Grants (Cycle 2)
Grant ID: NP2-0000000090
Abstract
Mass spectrometry imaging (MSI) provides label-free localization of hundreds of biochemicals — metabolites, lipids, exposomes, drugs and peptides — from single cells to tissue sections. This capability has opened up unprecedented opportunities in diagnosis and pathophysiology understanding of diseases such as cancers, diabetes, neurodegenerative, and metabolic disorders. However, MSI analysis is not supported by the napari ecosystem, which has left out the growing spatial metabolomics community from taking advantage of napari’s powerful visualization and image analysis capabilities.
The MSI-Explorer, a napari plug-in is a powerful tool designed for targeted biochemical annotations in MSI data. This user manual provides a comprehensive guide on how to install, use, and explore the functionalities of the plug-in within the napari platform. It covers data import, visualization, mean intensity calculation, region of interest (ROI) analysis, annotation with selected database and pre-processing such as noise reduction and normalization.
Guidelines
The imzML and .ibd files are needed.
It is recommended to be centroid data.


Uploading and visualization of MSI data
Uploading and visualization of MSI data
In anaconda prompt, create the environment by typing this.

conda create -y -n napari-env -c conda-forge python=3.9

In this case, “napari-env” is the name of the environment. Any name can be given.
Then, activate the environment.
conda activate napri-env

Install napari by using this commend.

pip install "napari[all]"

You can install MSI-Explorer via pip:
pip install MSI-Explorer
When installation finished, it is ready to use napari. Just type napari and napari window will pop up.
Choose the MSI-Explorer plug in.

1. Select imzml file using "Load imzML".
2. Metadata can be checked by "View Metadata".


Calculating mean(average) intensity
Calculating mean(average) intensity
Calculating mean intensity

  1. To calculate the mean spectrum, click on “Show true mean spectrum”.
  2. Show image to see the image view (Or it will automatically change.)
  3. To export as .csv file, click “Export spectrum data”.
  4. To save the spectrum plot, click "Export spectrum plot".
  5. To export as .csv file, click “Export spectrum data”.


Calculating mean intensity of selected m/z value:
In order to check only one m/z value, zoom-in the spectrum plot. The figure will be as
shown as below.

In order to see that, the display mode should be "Multi".
The data can be exported as .csv file by using "Show true mean spectrum".
Database
Database
To use the database search, click on "Select" and a pop-up window will appear. Then,
click on "Metabolite_database_ver 1" which is build-in database and "Confirm".

1. For instance, type 191 and the theoretical mass and its name will appear.
2. The user can select the range of the m/z value for the display image.

ROI selection
ROI selection
To select the ROI, click on "Select ROI or mean spectrum". Adjust the brush size and label color. You can fill the area by using paint icon.

Then click on the "Calculate ROI mean spectrum". You can export as .csv file by using "Export spectrum data". If one m/z is needed, just zoom-in the spectrum plot window and export.
Before selecting the second ROI, remove the first selected area by using eraser or label 0.

Pre-processing
Pre-processing
The pre-processing capabilities of MSI-Explorer enhance data quality and prepare MSI data for downstream analysis. Follow these steps for pre-processing:

Normalization
The normalization methods that the user can apply are
  1. Total ion current (TIC)
  2. Root mean square (RMS)
  3. Medium
  4. Reference peak

Noise reduction
The level of noise reduction is shown by percentage. The user can adjust the number depending on their experiment needed.


Protocol references
Ahlers, Jannis, Althviz Moré, Daniel, Amsalem, Oren, Anderson, Ashley, Bokota, Grzegorz, Boone, Peter, Bragantini, Jordão, Buckley, Genevieve, Burt, Alister, Bussonnier, Matthias, Can Solak, Ahmet, Caporal, Clément, Doncila Pop, Draga, Evans, Kira, Freeman, Jeremy, Gaifas, Lorenzo, Gohlke, Christoph, Gunalan, Kabilar, Har-Gil, Hagai, … Yamauchi, Kevin. (2023). napari: a multi-dimensional image viewer for Python (v0.4.18). Zenodo. https://doi.org/10.5281/zenodo.8115575