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

Karl W Smith, Nay Min Min Thaw Saw, Lennart Kowitz, Peter Lampen, Jianxu Chen, PRASAD PHAPALE

Published: 2023-10-09 DOI: 10.17504/protocols.io.n2bvj3dyplk5/v1

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.

Steps

Uploading and visualization of MSI data

1.

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.

2.

Then, activate the environment.

conda activate napri-env
3.

Install napari by using this commend.

pip install "napari[all]"
4.

You can install MSI-Explorer via pip:

pip install MSI-Explorer
```[https://www.napari-hub.org/plugins/MSI-Explorer](https://www.napari-hub.org/plugins/MSI-Explorer)



5.

When installation finished, it is ready to use napari. Just type napari and napari window will pop up.

Choose the MSI-Explorer plug in.

6.
  1. Select imzml file using "Load imzML".

  2. Metadata can be checked by "View Metadata".

Calculating mean(average) intensity

7.

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”.
7.1.

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

8.

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

9.

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

10.

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

10.1.

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
10.2.

Noise reduction

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

推荐阅读

Nature Protocols
Protocols IO
Current Protocols
扫码咨询