Vaccine Design Report
{% for key, val in (patient_summary | default(patient_info)).items() %}
{{ key }}: {{ val }}
{% endfor %}

{% if input_coverage %}{% include "templates/input_coverage.txt" %}{% endif %}
{% if mhc_allele_status %}{% include "templates/mhc_allele_status.txt" %}{% endif %}
{% if clonality_summary %}
=== Tumor-cell clonality ===
Mode: {{ clonality_summary.mode }}{% if clonality_summary.precedence_rule %}; precedence: {{ clonality_summary.precedence_rule }}{% endif %}{{ '' }}
{% if clonality_summary.direct_dna_provenance %}
Direct DNA CCF purity: {{ '%.2f' % clonality_summary.direct_dna_provenance.purity.value }} ({{ clonality_summary.direct_dna_provenance.purity.source }}){% if clonality_summary.direct_dna_provenance.cn_segments_path %}; CN segments: {{ clonality_summary.direct_dna_provenance.cn_segments_path }}{% endif %}{% if clonality_summary.direct_dna_provenance.specimen_id %}; specimen: {{ clonality_summary.direct_dna_provenance.specimen_id }}{% endif %}{{ '' }}
{% endif %}
{% for issue in clonality_summary.issues %}
  Match issue - {{ issue.label }} ({{ issue.count }}): {{ issue.variants | join(', ') }}
{% endfor %}
{% for crow in clonality_summary.rows %}
  {{ crow.antigen_id }}: {{ crow.status }}{% if crow.effective_clonality is not none %} (CCF={{ '%.3f' % crow.effective_clonality }}){% else %} (CCF unknown){% endif %}{% if crow.alt_reads is not none or crow.depth is not none %}; reads={{ crow.alt_reads if crow.alt_reads is not none else '?' }}/{{ crow.depth if crow.depth is not none else '?' }}{% endif %}{% if crow.source %}; source={{ crow.source }}{% endif %}{% if crow.cn_segment %}; CN={{ crow.cn_segment }}{% endif %}{% if crow.notes %}; caveats={{ crow.notes | join(', ') }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
{% if tumor_board_overrides_audit %}{% include "templates/tumor_board_audit.txt" %}{% endif %}
{% if host_coverage is defined %}{% include "templates/host_coverage.txt" %}{% endif %}
{% if ranked_candidates is defined %}{% include "templates/ranking.txt" %}{% endif %}
{% include "templates/products.txt" %}
{% if ms_report %}{% include "templates/ms_evidence_summary.txt" %}{% endif %}
{% if longitudinal_support %}{% include "templates/longitudinal_support.txt" %}{% endif %}
{% if longitudinal_selection %}{% include "templates/longitudinal_selection.txt" %}{% endif %}
{% if assay_observations %}{% include "templates/assay_observations.txt" %}{% endif %}
{% include "templates/antigen_biology.txt" %}
{% if selection_policy is defined %}{% include "templates/selection_policy.txt" %}{% endif %}
{% if input_coverage %}{% include "templates/source_outcomes.txt" %}{% endif %}

{% if candidate_details | default(true) and variants %}
{% include "templates/candidate_details.txt" %}
{% endif %}

=== Methods and provenance ===
{% include "templates/source_directory.txt" %}
Prediction evidence
{% for model in prediction_models %}
{{ model.name }} {{ model.version }}: {{ model.status }}
{% endfor %}
Presentation score: the named predictor's presentation output (NetMHCpan: Score_EL).
Presentation score: higher is stronger; presentation percentile: lower is stronger.
Score: Vaxrank's configured per-allele ranking score, shared across predictor rows.
Integrated processing: the named predictor's antigen-processing model, not Pepsickle.
Processing: Pepsickle cleavage annotation; combined is sqrt(C-term * (1 - max internal)).
WT: recorded comparator, not evidence of an observed patient-normal sequence.


{% if input_coverage %}{% include "templates/input_lineage.txt" %}{% endif %}
{% for key, val in patient_info.items() %}{{ key }}: {{ val }}
{% endfor %}
{% if prediction_configuration %}
=== Effective prediction configuration ===
{% for stage in prediction_configuration %}
{{ stage.stage }}: {{ stage.status }}
{% for detail in stage.details %}  {{ detail }}
{% endfor %}
{% endfor %}
{% endif %}

Invocation arguments, including parser defaults
Resolved selection and assembly settings are shown separately.
{% for key, val in args %}
  {{ key }}: {{ val }}
{% endfor %}

Package versions
{% for key, val in package_versions.items() %}
  {{ key }}: {{ val }}
{% endfor %}
