Skip to content

About

Free browser drills for pathologists: HER2, PD-L1, Ki-67, ER, MMR, TILs, cellularity, mitoses, lymph nodes, Gleason — compared with published interobserver agreement

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PathDrills — pathology scoring drills

Free, browser-only practice for the quantitative calls pathologists make every day — HER2, PD-L1, Ki-67, ER, MMR, stromal TILs, tumor cellularity, mitotic figures, lymph node metastasis size and Gleason / ISUP Grade Group — with your agreement compared against published inter-observer agreement among pathologists.

Educational tool. Not a medical device, not for clinical use. The fields are synthetic and the content has not yet been reviewed by a board-certified pathologist. Corrections are very welcome — see Reporting errors.

What it does

  • 11 drills. Each one generates an unlimited stream of procedural fields (seeded, reproducible) in two modes: standard (clear-cut) and hard (values near cut-offs and classic traps: DCIS, PD-L1-positive macrophages, missing internal control, mitotic mimics, sinus histiocytes, a minor high-grade Gleason pattern, and so on).
  • Exact ground truth. The generator knows every cell it drew, so the reference answer is computed, not estimated, and every answer comes with a cell-by-cell breakdown and markup overlay.
  • Comparison with pathologists. Your statistics are computed with the same metric as the source study (Cohen's κ at the same cut-off, quadratic-weighted κ, ICC, Dice, SD of error) and shown against the published value with a bootstrap 95% CI. Sources and caveats: docs/evidence.md.
  • Real images. 144 openly licensed microscopy images (CC0 / CC BY 4.0 / CC BY-SA 4.0) from open-access papers, Wikimedia Commons and public datasets, each with authors, DOI and licence.
  • Private by design. Results stay in a first-party cookie in your browser. No accounts, no analytics, no server. Sharing creates a link that carries only summary numbers.
Drill Answer Pathologist reference used for comparison
HER2 IHC, breast (ASCO/CAP 2023) 0 (null) / ultralow / 1+ / 2+ / 3+ κ 0.60, pathologist vs consensus
PD-L1 TPS, NSCLC (22C3) <1% / 1–49% / ≥50% κ 0.68 at 1%, 0.58 at 50%
PD-L1 CPS, gastric (22C3) <1 / 1–9 / ≥10 κ 0.48 at CPS 1, 0.60 at CPS 10
Ki-67, breast (IKWG 2021) % ICC 0.87
ER, breast (ASCO/CAP 2020) negative / ER-low / positive / uninterpretable QWK 0.94–0.95
MMR IHC, 4 panels 6 patterns κ 0.49–0.79
Stromal TILs, breast (TILs WG) % ICC 0.70
Tumor cellularity % SD of error 9.9 pp
Mitotic figures click to mark Dice 0.67; ICC 0.81 for counts
Lymph node metastasis (AJCC 8th) none / ITC / micro / macro, with ruler κ 0.575 vs reference
Gleason / ISUP Grade Group GG 1–5 QWK 0.82

Run locally

No build step, no dependencies — plain ES modules.

python3 tools/serve.py 8097   # then open http://localhost:8097

tools/gallery.html?t=her2&n=12&hard=1 renders a grid of fields for visual QA.

Repository layout

index.html, css/, js/        the app (hash router, no framework)
drills/<id>/, sitemap.xml    static, crawlable landing page per drill (generated, see below)
js/trainers/*.js             one module per drill: make(seed, hard) → field + ground truth + explanation
js/tissue.js                 shared procedural tissue engine (IHC: hematoxylin + DAB; H&E)
js/compare.js                pathologist reference values, one row per published metric
js/store.js                  bit-packed cookie storage (~4.7 KB with every drill full)
data/real.js, agreement.js   generated by tools/build_data.py from data/sources/*.json
assets/real/                 real images (compressed copies only)
docs/evidence.md             which study each reference value comes from, and why

Search engines

The app uses hash routes (#/t/her2), which search engines do not index. node tools/build_pages.mjs generates a static landing page per drill (drills/<id>/: scoring criteria, pathologist agreement, sources, structured data), the SEO head and no-JS drill list in index.html, sitemap.xml, robots.txt and 404.html. Rerun it after changing trainer texts. The canonical domain is the SITE constant at the top of that script.

Deploy

Pushing to main publishes the static site to GitHub Pages via .github/workflows/pages.yml (only the site files are published, not tools/, docs/ or data/sources/). For a custom domain add a CNAME file with the domain and point DNS at GitHub Pages.

Reporting errors

Every field has a Report an error button that includes the field's seed, so the exact field can be regenerated. Reports go by email (or as a GitHub issue when issuesUrl is set in js/config.js). Disagreements with a guideline interpretation are especially useful.

Licences

  • Code and synthetic generators: MIT.
  • Real images: third-party works under their own licences, listed in CREDITS.md. Crops are marked "modified: cropped"; CC BY-SA crops remain under CC BY-SA 4.0.

About

Free browser drills for pathologists: HER2, PD-L1, Ki-67, ER, MMR, TILs, cellularity, mitoses, lymph nodes, Gleason — compared with published interobserver agreement

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages