Lab book · Parallax Metrology · built by build_labbook.py

Paired HistoQC with embedded ICC profiles applied

Same 26 PLISM scans, same HistoQC revision, configuration, seed and 156 fields as the original paired study. One change: every region HistoQC reads is first converted from the scan's embedded colour profile to sRGB. Prompted by the HistoQC owner's suggestion on choosehappy/HistoQC#343.

1. Record

2. Gate

With the conversion switched off, the rebuilt environment reproduced all 26 of 26 original final mask PNGs byte for byte (SHA-256 against the original final_hashes.csv), and the original result: 52 switched, 47 AT2-only, 5 GT450-only. Pass. In the converted run, all 26 scans carried a profile ("AT2" on every AT2 file, "Segue_v2" on every GT450 file), and every scan read the same pyramid levels and produced the same mask size as without conversion.

3. Result

runfields switched (of 156)AT2 onlyGT450 onlyboth inboth outmean section switch fractionadmitted on AT2admitted on GT450median GT450/AT2 mask pixelsempty masks
No profile (original; reproduced here)5247541000.3335190.065KR_GT450, MY_GT450
Embedded profile applied532231280.03226250.710none

With the profiles applied, 5 fields switch instead of 52. The two scanners now admit nearly the same number of fields (26 and 25, against 51 and 9). Agreement rises mainly through fields excluded on both scans (100 to 128); fields admitted on both rise from 4 to 23. No mask is empty. GT450's whole-slide usable area is smaller than AT2's on 13 of 13 sections, with a median ratio of 0.710 (was 0.065).

scanneradmitted, no profileadmitted, profilegainedlost
AT25126833
GT450925160

Fields still switching with the profiles applied:

sectionfieldfraction inside, AT2fraction inside, GT450admitted on
GIV60.6830.000AT2 only
GVH40.7310.000AT2 only
HR80.0001.000GT450 only
HRH50.2270.785GT450 only
LM71.0000.000AT2 only

4. Per section

sectionswitched, no profileswitched, profileGT450/AT2 mask pixels, no profilewith profiletissue luma AT2 / GT450, no profilewith profile
GIV810.1870.795147.1 / 196.3196.2 / 191.3
GIVH400.0420.609171.9 / 209.5212.0 / 205.0
GM100.0320.897185.1 / 212.9220.7 / 210.5
GMH400.0420.638177.6 / 209.3215.8 / 205.3
GV400.1370.705145.0 / 196.8196.1 / 192.7
GVH710.1140.674147.5 / 196.7196.4 / 191.3
HR415.7960.95247.4 / 112.1106.5 / 97.8
HRH810.0720.660155.2 / 200.8201.5 / 195.7
KR100.0000.792179.3 / 210.3218.1 / 208.0
KRH300.0560.502187.0 / 211.9222.1 / 208.5
LM410.0650.710170.3 / 210.8211.1 / 207.9
LMH400.0990.716149.7 / 197.6197.2 / 192.2
MY000.0000.987191.8 / 215.2224.4 / 213.0

5. Prior thumbnail look

Before the plan: median tissue luma (0 to 255) on 2000-pixel thumbnails, tissue taken as luma below the 95th percentile minus 25 on the unconverted thumbnail, and the same pixels measured after conversion (table above). Median AT2 to GT450 gap across sections: 40.5 without profiles, 6.9 with. With the profiles, AT2 renders slightly brighter than GT450 on 13 of 13 sections.

6. Scope

Same array, scanners, pipeline and settings; only the colour conversion changes. One rendering intent was run. Descriptive: it shows that applying the vendor profiles changes which fields the default pipeline admits here, and how far the two scanners then agree. It does not say which mask is right. Most of the 156 fields, which were chosen as tissue locations, are excluded on both scans under the default configuration with or without profiles; no step trace was run for the converted masks, so which steps drive the remaining exclusions and switches is not measured here.

7. Files

PLAN.md, PLAN.sha256, PLAN.frozen_at.txt; run_masks.py (masks, both modes), score.py (scoring and gate), thumbnail_check.py, build_labbook.py; masks_baseline/, masks_icc/ (PNG + receipt per scan); results_baseline/, results_icc/; logs/.