Skip to content

Workflow for the quantification of tumor microenvironment images based on IF and HE tissue section

License

Notifications You must be signed in to change notification settings

oncoray/MicroQuant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

This repository contains a collection of scripts for the segmentation, registration and quantification of pairs of tumor tissue sections. Some of the functionality is available as both Python and ImageJ macro script.

The scripts and notebooks in this reppository refer to the publication:

Radiomics-based tumor phenotype determination based on medical imaging and tumor microenvironment in a preclinical setting, Müller et al. (under review)

All used scripts for this publication are saved in this repository as follows:

  • H&E image segmentation: Pytorch segmentation pipeline, which can be examplarily viewed in a Jupyter notebook
  • Immunofluorescent (IF) image segmentation: ImageJ macro script relying on image segmentation with Ilastik.
  • Image registration of H&E and IF images: ImageJ macro script relying on image registration with Elastix.
  • Tumor microenvironent features (TME): ImageJ macro script.

Requirements:

  • H&E Segmentation: Python (Framework: Pytorch)

  • IF Segmentation: Python (Framework: scikit learn /Ilastik

  • Registration: Elastix, can be callled from Python or ImageJ macro

  • Measurement: ImageJ macro, requires the CLIJ2 plugin for Fiji

  • File structure: The data are expected to be in a particular file structure to allow running analysis:

├── root
    ├── N1XX_Tumor_YY
        ├── Imaging
        └── Histology
            ├── 1_Sample_1
            └── 2_Sample_2
                ├── Filename_IF
                └── Filename_HE

where N1XX requires to the study number (in this case, could be N182, N183, N194 or N195) and YY refers to the tumor type, which could be either SAS or UT-SCC-14. The filenames Filename_IF and Filename_HE are required to carry the identifier strings IF and HE in their filenames, respectively.

Installation

Python:

Download and install Anaconda3. Create a new environment and install pytorch:

conda create -n microquant Python=3.8 git
conda activate microquant

Install pytorch according to the configuration on the Pytorch homepage. For instance, for Windows OS and CUDA 11.3 driver this can be achieved by

conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

You can now proceed to install microquant by cloning the repository and installing it:

git clone https://github.com/jo-mueller/MicroQuant.git
cd microquant
pip install -e .

ImageJ macro:

As for the imageJ macro scripts, it is sufficient to download Fiji and open the macro in the Fiji toolbar.

About

Workflow for the quantification of tumor microenvironment images based on IF and HE tissue section

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 91.8%
  • Python 4.5%
  • ImageJ Macro 3.7%