QuPath H-DAB Project
  • ๐Ÿ“ŠQuPath guide for H-DAB Cell Counting Docs
  • ๐Ÿ’กPipeline
    • ๐Ÿ’กSimple Pipeline
  • Fundamentals
    • ๐Ÿ› ๏ธGetting Set Up
  • QuPath H-Dab Docs
    • ๐Ÿ’กQuPath H-DAB Tutorial
      • Creating and Opening of Projects
      • Estimating Stain Vectors
      • Training Image Creation
      • Cell Detection
      • Object Classifier
      • Tissue Detection
        • 1๏ธโƒฃAutomatic General Tissue Detection
        • 2๏ธโƒฃManual Specific Tissue Detection
    • ๐ŸงพQuPath Script
      • Batch Processing
    • ๐Ÿ“‚Output
  • Result Analysis Docs
    • ๐Ÿ’กProcessing Package Tutorial
      • Addition Information for Python insiders
      • In-Depth Python usage
    • ๐Ÿ—„๏ธFinal Spreadsheet creation
    • ๐Ÿ†˜Out-of-memory error
  • non-expert docs
    • ๐Ÿ”ŽQuPath Installation
    • ๐Ÿ’ปGit Bash Installation
    • ๐Ÿ–ฅ๏ธPython Installation & Packages
    • Git Bash installation
Powered by GitBook
On this page
  1. QuPath H-Dab Docs
  2. QuPath H-DAB Tutorial

Training Image Creation

The Positive Cell detection in QuPath is not accurate enough for very acellular tissue as the cell detection always recognises some tissue artefacts as cells, therefore we train an image.

PreviousEstimating Stain VectorsNextCell Detection

Last updated 7 months ago

To create a training image on which we can train QuPath to recognise positive cells, negative cells, and no cells we need to choose our regions of interest.

If you want to run the analysis on different tissue components, a training image for each of them needs to be created.

The same applies if multiple sections are stained with different antibodies on one slide.

If you have different regions and antibodies, create a separate project for each antibody.

  1. Click on โ€บ โ€บ (on the three dots) โ€บ Add/Remove โ€บ Add class

    For my project, I have chosen the following classes,

    • Region

    • Ignore*

    • PositiveCell

    • NegativeCell

    • NoCell

    either

    • TissueComponent1 (e.g. CEP)

    • TissueComponent2 (e.g NP)

    • TissueComponent3 (e.g. iAF)

    • TisueComponent4 (e.g. oAF)

    or

    • Antibody 1 (e.g. IL1)

    • Antibody 2 (e.g. IL6)

    Colours can be changed by double-clicking on the coloured square in front of the class.

The classification of the PositiveCell, NegativeCell, and NoCell must be set as such with exactly this spelling as those are used for the calculation of the immunopositivity rate with the Python script.

The other classes can be freely chosen. Check again that you have no spelling mistakes because this would lead to an error in the final code we are running.

  1. Once the classes are added choose e.g TissueComponent1 and click on auto set, so that it automatically sets whatever you draw to the according class.

Repeat this step for every TissueComponet analysis.

  1. Once all the different regions are chosen a training image is created by choosing under classify, training images, create training image. Change the classification to TissueComponent1 and click on Ok.

If the question "What type of images is this?" pops up select H-DAB

By clicking on a raster will appear which can help draw squares of the same size (3x3). Fifteen to twenty regions in different slides should be chosen and saved as changes. They must represent the whole project and contain all sorts of different regions containing cells (pos/neg), tissue folds, dirt on the slide, etc. The more regions chosen to train on, the better the outcome will be, however too many can slow down the computer. Furthermore, the classifier will be optimised on additional regions later on.

๐Ÿ’ก
Creation of training image
Training image for TissueComponent4 (oAF)
Training image for TissueComponent2 (NP)