{% 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 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 longitudinal_support %}{% include "templates/longitudinal_support.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 %}