GithubHelp home page GithubHelp logo

heip's Introduction

HEIP

HEIP (HE-image-analysis-pipeline): set of tools to run end-to-end HE-image analysis

schema

Generic badge Python - Version

Introduction

HEIP is a fully fledged pipeline for extracting cell level information from hematoxylin and eosin (H&E) whole slides. It consists of different steps and related tools ranging from HE-image patching, pre-processing, cell segmentation and classification, until downstream feature extraction. The pipeline, written entirely in Python, is modular and it is easy to add additional or modify existing steps.

To demonstrate the potential of HEIP, the pipeline was applied to analyze high-grade serous carcinoma H&E slides and the complete study is available in Journal of Pathology Informatics at this link

Set Up

  1. Clone the repository
git clone [email protected]:ValeAri/HEIP_HE-image-analysis-pipeline.git
  1. cd to the repository cd <path>/HEIP_HE-image-analysis-pipeline/

  2. Create environment with python >3.7 and <3.11 (optional but recommended)

conda create --name HEIP python
conda activate HEIP

or

python3 -m venv HEIP
source HEIP/bin/activate
pip install -U pip
  1. Install dependencies
pip install -r requirements.txt
  1. Model

Instance segmenatation model available here!

Notebook examples

  1. Patching HE images.
  2. Pre-process HE images.
  3. Train a segmentation model for HE images with a training set.
  4. Run inference with the segmentation model.
  5. Merge cell annotations.
  6. Morphological features extraction from all cells in the WSI.

Run instance segmentation training and inference with SLURM from CLI

NOTE You might want to modify the batchscripts to your needs (setting up right paths etc).

Training

cd HEIP_HE-image-analysis-pipeline/
sbatch ./batchscripts/train.sh

Inference

cd HEIP_HE-image-analysis-pipeline/
sbatch ./batchscripts/infer_wsi.sh

heip's People

Contributors

okunator avatar valeari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.