Skip to content

CeMOS-Mannheim/QCL_MIR_guided_MSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Cascade Laser (QCL) Mid-Infrared Imaging (MIR)-guided MALDI Mass Spectrometry Imaging (MSI)

The purpose of this application is to provide a tool for the proposed QCL-MIR-guided MSI workflow. It accepts mid-infrared imaging data as an input, performs image registration and segmentation to ultimately generate a MALDI MSI data acquisition file (.mis) that can be executed on respective MS instruments. The implementation of this application allows the user to process their data according to their specific needs (i.e. their biological questions) and thereby facilitates region specific in-depth MSI analysis.

Basic Instructions

1. Overview and Installation

An executable version of the software is available that runs on Windows.

The software needs a working Python 3 environment including various Python packages. An overview of the packages and their used versions is given in the requirements.txt document. If you're using a later version, you might need to make a few small changes to the code to get it running.

Note: please choose any other Python integrated development environment (IDE)

2. Data

We provide a test data set that consists of

  • an empty (no measurement regions included) .mis file,
  • a single wavenumber image used as a reference (non-teached image file for simplicity)
  • a hyperspectral test data set of a kidney section (size was reduced 2x for simplicity). Accordingly, the respective pixels sizes are: 4.66 µm for the refrence image and 9.32 µm for the hyperspectral dataset.

A link to full data sets are provided in the corresponding publication.

3. Bug reporting:

Feedback of any kind, including questions and bug reports, should be directed to the relevant author(s).

4. Instructions:

Here, we provide a brief demo with the aim to give a rough overview of the main functionality of the GUI.

In order to run the GUI, run M2iraQuantReg.py. If you wish to only visualise MIR data and perform basic pre-processing steps, please run M2iraQuantView.py, which accepts *.zarr, *.fsm and *.pickle files in the current implementation.

Image Registration:

  1. Open a single wavenumber reference image (.tiff file), may take a while.
  2. Open QuantumViewer – process with the following steps
  • a) Import hyperspectral data as .pickle file. Select both .pickle files simultaneously.
  • b) Optionally: modify image orientation. Here: rotate image by 90°.
  • c) Select single wavenumber and add it to the list.
  • d) Optionally: modify image mask.
  1. Obtain selected IR data and image mask (from the list in QuantumViewer).
  2. Specify pixel size. After entering the input value in each field press enter to accepted new value, input turns light-grey.
  3. Obtain image subset. Therefore press (5) and move the red square to the tissue section of interest (same as hyperspectral data) and
  4. press button (6), may take a while.
  5. Select segmentations parameters: here affine and 100 iterations.
  6. Register images.
  7. Visualize registration results.

QuantumRegistration window QuantumViewer window Registration settings

Image Segmentation:

As an example, we want to segment the ISOM region of the kidney.

  1. Perform feature or spectral band selection of IR data incl. pre-processing options.
    • e) Delete single wavenumber from list.
    • f) Perform image processing. Here 2nd derivative of absorbance.
    • g) Select spectral features or bands.
    • h) Change between different visualizations.
  2. Obtain features or spectral bands of IR data. Optionally select smoothing via a Gaussian filter. Make sure the correct pixel size is set.
  3. Perform image segmentation. Here: k-means clustering (k=5) on masked image.
  4. Visualize segmentation results and select ROI (left or right click on segments).
  5. Transfer segments into the frame of the single wavenumber image.

QuantumViewer window 2 QuantumRegistration window 2 Smoothing settings Segmentation settings

Generate ROI and measurement region:

  1. Modify ROI, e.g. remove small objects or small holes.
  2. Generate shape (e.g. normal or open holes)
  3. Visualize shape on single wavenumber image. The ROI will appear in the “Infrared” list.
  4. Include ROI into .mis-file. Select raster size (here 40µm) and type (Measurement area or ROI). Select Name.

QuantumRegistration window 3 Hole filling settings Resulting region