Code Monkey home page Code Monkey logo

ihcount's Introduction

IHCount workflow

This is a general workflow, used for the quantitative analysis of multiple IHC-Images. The pipeline we setup for this analysis utilises several publicly available tools for the different steps of pre-processing (Python1, bftools2, libvips3), classification(Ilastik4) and segmentation (CellProfiler5). The individual steps of this workflow were combined in a python script runCP.py, which is easy to adapt.

Preprocessing

For the preparation of the IHC-images for further analysis, we used the script collection bftools from the OME - Bio-Formats6. As a first step, high-resolution bright-field images were extracted from the image containers available in Leica (SCN) format. Following this, each of these high-resolution images was tiled into smaller subimages, which can be used as training data.

alt text

Classification

The Pixel Classificator module of Ilastik was used to establish classifiers from a subset of the previously generated image tiles. Using manual annotation, the classifiers were trained to distinguish positively stained cells and all nuclei on the selected IHC-Images, as well as tissue and background. As a result of running the classifier as a batch process on all tiles of a slide, we obtained two sets of so called probability maps. One set shows the probabilities for positively stained cells and the second for all nuclei on the slide, together with the probabilities for stromal tissue and background. These maps were used in the following segmentation and quantification steps.

alt text

Cell counting and extraction of spatial features

The cell segmentation and counting, as the final steps in this workflow, were performed by CellProfiler. The probability maps together with the original tiles were loaded into CellProfiler, either using the GUI or running it from the command line. We created a pipeline (IHCount.cppipe) that utilises several intensity based modules for image processing to identify and quantify positive stained cells, nuclei and the area of tissue.

alt text

Tools used

  1. Python 2.7 - Python 2.7
  2. bftools - OME command line tools for image processing
  3. VIPS Project - Image processing library
  4. Ilastik 1.2.2 - Interactive learning and segmentation toolkit
  5. CellProfiler 2.2.0 - Cell image analysis software
  6. OME - Bio-Formats Linkert, M. et al. Metadata matters: access to image data in the real world. J. Cell Biol. 189, 777โ€“782 (2010)

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.