What it does¶
Every run checks its own result: the image, the segmentation and the table. It writes the numbers as a web page for you to read and a JSON file for scripts. It reports numbers, not a verdict: nothing fails on bad QC, so read the report.
Parameters¶
use_qc, default on: everything on this page, and Ashlar’s stitching report. To turn it off, writeuse_qc: falsein yourparams.yml; on the command line it is refused.use_qc_images, default on: off keeps the numbers and charts but drops the image crops and the clustering, which take minutes rather than seconds.
More in Quality control.
How it works¶
The checks follow the pipeline:
Channels: intensity statistics on every pixel of the full-resolution image, zero pixels, and whether the image, the table and the marker sheet agree on channel names.
Nuclear stain across cycles: the first against the last cycle’s nuclear stain per cell, to see cells lost in later cycles.
Stitching and registration: Ashlar’s own report; see Ashlar.
Before and after background subtraction, when it ran.
Cells: the area distribution, the count of tiny cells (below 10 px²), and cells per patch laid out as the patch grid.
Linking: cells by number of nuclei, unlinked nuclei, and cells their nuclei fill.
Images (
use_qc_images): outlines on full-resolution crops across the density range, and a clustering of cells by marker mean with example cells per cluster. The clusters are not yet reproducible from run to run, and the report says so.
QC runs per sample and method (per core on a TMA), reads the store and never changes it. On a TMA, a slide report compares the cores. When both methods segment cells, a comparison page shows their counts, median areas, the share of cells matched one-to-one (overlap of at least half, IoU ≥ 0.5), and both outlines on the same crops.
Inputs and outputs. In: the finished store, Ashlar’s QC folder, and the image before
background subtraction when it ran. Out, under qc/: {sample}_{method}_qc_report.html, a
self-contained page you can copy anywhere and open offline; {sample}_{method}_qc.json; the
image crops; and {sample}_comparison.html or {slide}_{method}_slide_report.html when they
apply. File by file: QC files. What each chart means:
Reports.
Similar tools¶
MultiQC collects the logs of standard tools into one report; it has no checks for segmented images.
Looking by eye in napari or QuPath, which the report does not replace; see Reports.
The report is written for this pipeline, so problems are visible without opening the store. A pass/fail threshold was considered and deferred: the numbers that would justify one need more than one dataset behind them.
Read more¶
Version used:
| Module | Tool | Version | Container | Paper |
|---|---|---|---|---|
| QC_METRICS | pipeline scripts (bin/) | community.wave.seqera.io/library/python_sopa:54a97bc5a187152d | ||
| QC_IMAGES | pipeline scripts (bin/) | community.wave.seqera.io/library/python_sopa:54a97bc5a187152d | ||
| QC_REPORT | pipeline scripts (bin/) | community.wave.seqera.io/library/python_sopa:54a97bc5a187152d | ||
| COMPARE_SEGMENTATIONS | pipeline scripts (bin/) | community.wave.seqera.io/library/python_sopa:54a97bc5a187152d | ||
| MERGE_REPORT | pipeline scripts (bin/) | community.wave.seqera.io/library/python_sopa:54a97bc5a187152d |