Batch exploration of segmentation results

Prerequisites

Before starting this lesson, you should be familiar with:

Learning Objectives

After completing this lesson, learners should be able to:
  • Use various tools to efficiently inspect segmented images and corresponding object measurements.

Motivation

Deriving scientifically sound conclusions from microscopy experiments typically requires batch analysis of large image data sets. Once the analysis has been conducted it is critical to visually inspect the results to identify errors and to make scientific discoveries. To do so efficiently requires making oneself familiar with appropriate tools.

Concept map

graph TD I("Images") --> BA("Batch analysis") BA --> S("Segmentations") S --> M("Object measurements") I --> Q("Visual QC") S --> Q M --> Q



Figure


Depiction of a typical bioimage analysis workflow, where batch analysis of many input images yields object segmentation images and measurements, which must be quality controlled and explored for scientific discovery.






Activities

Batch explore segmented images

This activity will show how to efficiently batch explore potentially many segmented images.

Please download the example data (including the CellProfiler pipeline used to create the segmentations).

After unzipping, the data for this activity can be found in the batch_qc_practical sub-folder.


Show activity for:  

Fiji MoBIE

  • Open Fiji with the MoBIE update site installed.
  • Open Well_1_C0.tif and Well_1_nuclei_labels.tif in Fiji
    • Optional: Change the LUT for the labels to glasbey_inverted
  • Check for segmentation errors
  • Appreciate that manually inspecting all nuclei segmentations like this would be tedious
  • Close the two images in Fiji
  • Now use MoBIE to open all images and segmentations
  • [ Plugins › MoBIE › Open › Open Image and Labels… ]
    • Image URI: [ Browse ] to Well_1_C0.tif and then, to open all wells, replace _1_ by _.*_ such that it reads .../Well_.*_C0.tif
    • Label Mask URI: [ Browse ] to Well_1_nuclei_labels.tif and, same as above, replace _1_ by _.*_
    • Label Mask Table URI: Leave empty
    • SpatialCalibration: Does not matter here, because the images are only in pixel units anyway
    • Grid: Transformed (Stitched performs better if you have >100 images)
    • Click [ OK ]
  • The MoBIE UI and BigDataViewer will open allowing you to conveniently browse all data
  • Browsing suggestions
    • [ Ctrl L ] to shuffle the label colors
    • Use the table to move between images

napari (TODO)

# TODO
# If someone has a solution please reach out :-)



Batch explore segmented images and object measurements

This activity will show how to efficiently batch explore, potentially many, segmented images and the corresponding object measurements.

Please download the example data (including the CellProfiler pipeline used to create the segmentations and object measurements).

After unzipping, the data for this activity can be found in the batch_qc_practical sub-folder.


Show activity for:  

Explore Images & Labels & Tables - Fiji MoBIE

  • Open Fiji with the MoBIE update site installed.
  • Use MoBIE to inspect segmented nuclei and nuclei measurements
  • [ Plugins › MoBIE › Open › Open Image and Labels… ]
    • Image URI: [ Browse ] to Well_1_C0.tif and then, to open all wells, replace _1_ by _.*_ such that it reads .../Well_.*_C0.tif
    • Label Mask URI: [ Browse ] to Well_1_nuclei_labels.tif and, as above, replace _1_ by _.*_
    • Label Mask Table URI: [ Browse ] to Well_1_nuclei.txt and, as above, replace _1_ by _.*_
    • SpatialCalibration: Does not matter here, because the images are only in pixel units anyway
    • Grid: Transformed (Stitched performs better if you have >100 images)
    • Click [ OK ]
  • The MoBIE UI and BigDataViewer will open allowing you to conveniently browse all data
  • Browsing suggestions:
    • Sort the nuclei table by AreaShape_Area and browse to the largest and smallest nuclei, as those are likely representing segmentation errors
    • In the table, use “Color by Column”, select a measurement and color it using the blue-white-red LUT

Explore Objects Table - Fiji MoBIE

  • Open Fiji with the MoBIE update site installed.
  • Open All_Wells_cells.txt and identify the columns that contain file names, as those will be needed to open the table with MoBIE
  • [ Plugins › MoBIE › Open › Open Table… ]
    • Table Path: [ Browse ] to All_Wells_cells.txt
    • Image Path Column(s): FileName_DNA, FileName_PLA
    • Labels Path Column(s): FileName_CellLabels, FileName_PLALabels
    • Data Root Folder: [ Browse ] to data folder
    • SpatialCalibration: Does not matter as everything is in pixel units
    • Grid: Transformed (Stitched performs better if you have >100 images)
    • Click [ OK ]
  • The MoBIE UI and BigDataViewer will open allowing you to conveniently browse all data
  • Browsing suggestions:
    • Cell table: Color > Color by Column: Children_PLA_dots_Count with blueWhiteRed LUT
      • This will paint cells red that have a lot of PLA spots
    • Image table: Color > Color by Column: Mean [Object Number] with blueWhiteRed LUT
      • This will outline images red that have a lot of cells






Assessment

Fill in the blanks

  1. TODO ___ .
  2. TODO ___ .

Solution

  1. TODO
  2. TODO




Follow-up material

Recommended follow-up modules:

Learn more: