Skip to content

Reorganize vaccine report for clarity: survey -> enriched top-candidate ranking -> focused products & appendices (v3.64.0) - #901

Merged
iskandr merged 2 commits into
mainfrom
feat/report-clarity-organization
Nov 22, 2026
Merged

iskandr merged 2 commits into
mainfrom
feat/report-clarity-organization

Conversation

@iskandr

@iskandr iskandr commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Closes #900

Summary

Overhauls HTML/PDF/ASCII report organization and readability so the report leads with an executive survey, then high-signal ranking information per top candidate, then emitted products and focused biology/longitudinal views, with full bulk audit tables cleanly collapsible in HTML without flooding the PDF:

  1. Survey / Overview up front (template.html, input_coverage.html):
    • Added a compact Run overview strip right below Patient Info (Emitted design counts + selected / ranked targets + active families).
    • Removed the redundant Input evidence = Supplied column from the Input coverage table (unsupplied families are already listed cleanly in the one-line footnote).
    • Moved empty "Original VCF/BAM stage counts: unknown" and "Host ORF catalogue coverage was not recorded" notes out of Page 1 into Methods and provenance when not recorded.
  2. Enriched Candidate ranking moved right after Overview (report.py, ranking.html, template.html, template.txt):
    • Promoted Candidate ranking from the back of the report to immediately after Input coverage (Page 3 in Sid's multi-omics PDF instead of Page 141).
    • Enriched each candidate row with key per-candidate ranking evidence: combined score, target epitope score, RNA/expression support, top HLA epitope/allele (+ affinity/rank & count), MS badge, qualifying longitudinal timepoints (T0, T1, T2), matched-normal status badge (Normal DNA clean / Normal review), and clickable product ID links (peptide_001_OTUD7A-FMN1_SV, mrna_001).
    • Splits Selected candidates into the main table and puts unselected ranked candidates in collapsible <details>.
  3. De-slopped Emitted products, Longitudinal support, Antigen biology, and audit appendices:
    • Deduplicated the 24× repeated source-provenance disclaimer in products.html to once at the section top, combined Product ID + end-modification status + window rationale onto one compact line, rendered Manufacturability as a compact inline flex grid instead of a 10-row vertical table, and collapsed per-modality assembly config tables into <details>.
    • Focused Longitudinal and library support (with compact .longitudinal-table print styling) and Antigen biology and targeting on Selected targets, putting unselected candidates in <details>.
    • Added details:not([open]) > :not(summary) { display: none; } in stylesheet.css so WeasyPrint respects closed <details> in PDFs (keeping 100% of every unselected row, score algebra trace, W1..W102 window decision, CTA admission table, source directory, input lineage receipt, and 50 parser defaults clickable in HTML while shrinking Sid's multi-omics PDF from 1.94 MB / 200+ pages down to 285 KB / 56 pages and cutting WeasyPrint render time from ~15 min to ~6 s).
  4. Version bump: 3.63.0 → 3.64.0.

Testing

  • ruff check vaxrank tests — passed.
  • pytest tests/test_report_clarity.py tests/test_product_reports.py tests/test_input_coverage.py tests/test_longitudinal_and_normal_evidence.py tests/test_antigen_biology.py tests/test_reference_coverage.py tests/test_effective_prediction_policy.py tests/test_window_selection.py tests/test_selection_policy.py tests/test_antigen_evidence_report.py tests/test_antigen_input.py tests/test_cta_input.py tests/test_construct_ranking.py — 210 passed.

@iskandr
iskandr merged commit fb08543 into main Nov 22, 2026
11 checks passed
@iskandr
iskandr deleted the feat/report-clarity-organization branch November 22, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorganize vaccine report for clarity: survey -> enriched top-candidate ranking -> emitted products -> focused appendices

1 participant