{% for key, val in (patient_summary | default(patient_info)).items() %}
{{ key }}
{{ val }}
{% endfor %}
{% if design_overview is defined and (design_overview.n_ranked or design_overview.modalities) %}
{% if design_overview.modalities %}Emitted design: {{ design_overview.modalities | join(' · ') | e }} · {% endif %}
Candidates: {% if design_overview.n_selected %}{{ design_overview.n_selected }} selected from {% endif %}{{ design_overview.n_ranked }} ranked{% if design_overview.families %} ({{ design_overview.families | join(', ') | e }}){% endif %}
{% endif %}
{% if input_coverage %}{% include "templates/input_coverage.html" %}{% endif %}
{% if mhc_allele_status %}{% include "templates/mhc_allele_status.html" %}{% endif %}
{% if clonality_summary %}
Tumor-cell clonality & direct DNA CCF provenance
Mode: {{ clonality_summary.mode | e }}{% if clonality_summary.precedence_rule %} · Precedence: {{ clonality_summary.precedence_rule | e }}{% endif %}{% if clonality_summary.direct_dna_provenance %} · Purity: {{ '%.2f' % clonality_summary.direct_dna_provenance.purity.value }} ({{ clonality_summary.direct_dna_provenance.purity.source | e }}){% if clonality_summary.direct_dna_provenance.cn_segments_path %} · CN segments: {{ clonality_summary.direct_dna_provenance.cn_segments_path | e }}{% endif %}{% if clonality_summary.direct_dna_provenance.specimen_id %} · Specimen: {{ clonality_summary.direct_dna_provenance.specimen_id | e }}{% endif %}{% endif %}.
{% for issue in clonality_summary.issues %}
{{ issue.label | e }} ({{ issue.count }}): {{ issue.variants | join(', ') | e }}.
{% endfor %}
{% if clonality_summary.rows %}
Antigen / variant
Status & CCF
DNA reads
Source & provenance
{% for crow in clonality_summary.rows %}
{{ crow.antigen_id | e }}
{{ crow.status | e }}{% if crow.effective_clonality is not none %} ({{ '%.3f' % crow.effective_clonality }}{% if crow.ci_lower is not none and crow.ci_upper is not none %}; 95% CI {{ '%.2f' % crow.ci_lower }}–{{ '%.2f' % crow.ci_upper }}{% endif %}){% else %} (CCF unknown){% endif %}
{% if crow.alt_reads is not none or crow.depth is not none %}{{ crow.alt_reads if crow.alt_reads is not none else '?' }}/{{ crow.depth if crow.depth is not none else '?' }}{% else %}—{% endif %}
{{ crow.source | e }}{% if crow.purity %}; purity {{ crow.purity | e }}{% endif %}{% if crow.cn_segment %}; CN {{ crow.cn_segment | e }}{% endif %}{% if crow.specimen %}; specimen {{ crow.specimen | e }}{% endif %}{% if crow.precedence %}; {{ crow.precedence | e }}{% endif %}{% if crow.notes %}; caveats: {{ crow.notes | join(', ') | e }}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if tumor_board_overrides_audit %}{% include "templates/tumor_board_audit.html" %}{% endif %}
{% if interactive_review_html and tumor_board_dossier %}{% include "templates/interactive_review.html" %}{% endif %}
{% if host_coverage is defined and host_coverage.identity %}{% include "templates/host_coverage.html" %}{% endif %}
{% if ranked_candidates is defined %}{% include "templates/ranking.html" %}{% endif %}
{% include "templates/products.html" %}
{% if ms_report %}{% include "templates/ms_evidence_summary.html" %}{% endif %}
{% if longitudinal_support %}{% include "templates/longitudinal_support.html" %}{% endif %}
{% if longitudinal_selection %}{% include "templates/longitudinal_selection.html" %}{% endif %}
{% if assay_observations %}{% include "templates/assay_observations.html" %}{% endif %}
{% include "templates/antigen_biology.html" %}
{% if selection_policy is defined %}{% include "templates/selection_policy.html" %}{% endif %}
{% if input_coverage %}{% include "templates/source_outcomes.html" %}{% endif %}
{% if candidate_details | default(true) and variants %}
{% include "templates/candidate_details.html" %}
{% endif %}
{% include "templates/score_guide.html" %}
Methods and provenance
{% if input_coverage and not input_coverage.direct %}
Original VCF/BAM stage counts: unknown (not retained in these inputs). Surviving antigen or prediction rows cannot recover that denominator.
{% endif %}
{% if host_coverage is defined and not host_coverage.identity %}{% include "templates/host_coverage.html" %}{% endif %}
{% include "templates/source_directory.html" %}
{% include "templates/prediction_models.html" %}
{% if input_coverage %}{% include "templates/input_lineage.html" %}{% endif %}