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.
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.
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.
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.
- Python 2.7 - Python 2.7
- bftools - OME command line tools for image processing
- VIPS Project - Image processing library
- Ilastik 1.2.2 - Interactive learning and segmentation toolkit
- CellProfiler 2.2.0 - Cell image analysis software
- OME - Bio-Formats Linkert, M. et al. Metadata matters: access to image data in the real world. J. Cell Biol. 189, 777–782 (2010)