Vaxrank Run Comparison

Run A: {{ run_a.label | e }} ({{ run_a.ranked_count }} targets, {{ run_a.ranking_basis | e }}) — {{ run_a.path | e }}
Run B: {{ run_b.label | e }} ({{ run_b.ranked_count }} targets, {{ run_b.ranking_basis | e }}) — {{ run_b.path | e }} {% if rp.comparable is false %}
Ranking bases do not support a rank correlation or cause of change.{% endif %} {% if policies_differ %}
Selection policies differ between runs{% endif %}

Shared targets
{{ rp.shared_target_count }} / {{ rp.total_unique_targets }}
Only in A / B
{{ rp.only_in_a_count }} / {{ rp.only_in_b_count }}
Spearman ρ
{{ fmt_num(rp.spearman_rho) }}
Kendall τ-b
{{ fmt_num(rp.kendall_tau_b) }}

Top-K Overlap

{% for k_str, stats in rp.top_k.items() %} {% endfor %}
CutoffOverlapJaccardGained in BLost from AExact seqShifted window
Top-{{ k_str | e }} {{ stats.overlap_count }} {{ fmt_num(stats.jaccard) }} +{{ stats.gained_in_b_count }} -{{ stats.lost_from_a_count }} {{ stats.exact_sequence_matches }} {{ stats.shifted_window_matches }}
{% macro target_table(rows, empty_msg, show_seqs=false) %} {% if not rows %}

{{ empty_msg | e }}

{% else %} {% for r in rows %} {% endfor %}
Target Rank (A → B) Ranking score Expression {% if show_seqs %}Peptide sequence (A → B){% else %}Window{% endif %} Attribution
{{ (r.gene_name or r.source_identifier) | e }}
{{ r.target_key | e }}
{{ r.rank_a if r.rank_a is not none else '—' }} → {{ r.rank_b if r.rank_b is not none else '—' }} {{ fmt_num(r.score_a) }} → {{ fmt_num(r.score_b) }} {{ fmt_num(r.expression_a) }} → {{ fmt_num(r.expression_b) }} {% if show_seqs %}{{ r.amino_acids_a | e }}
→ {{ r.amino_acids_b | e }}{% else %}{{ r.sequence_match | e }}{% endif %}
{% for a in r.attribution %}{{ a | e }} {% endfor %}
{% endif %} {% endmacro %}

Gained in Top-{{ primary_top_k }} ({{ run_b.label | e }})

{{ target_table(comparison.gained_in_top_k, "No targets gained in primary Top-K.") }}

Lost from Top-{{ primary_top_k }} ({{ run_a.label | e }})

{{ target_table(comparison.lost_from_top_k, "No targets lost from primary Top-K.") }}

Notable Rank Movers (|Δrank| ≥ {{ comparison.policy.rank_shift_highlight_threshold }})

{{ target_table(comparison.notable_rank_movers, "No notable rank movers among retained shared targets.") }}

Shifted Peptide Windows ({{ comparison.shifted_window_targets | length }})

{{ target_table(comparison.shifted_window_targets, "No shared targets changed peptide window sequence.", show_seqs=true) }} {% for mod in ('peptide', 'mrna') %} {% set diff = comparison.construct_diffs[mod] %} {% if diff.available %}

Emitted {{ mod | upper }} Construct Diff

Constructs: {{ diff.construct_count_a }} → {{ diff.construct_count_b }} · Antigen slots: {{ diff.slot_count_a }} → {{ diff.slot_count_b }} · Exact matches: {{ diff.exact_match_count }} · Shifted windows: {{ diff.shifted_window_count }} · Added: {{ diff.added_count }} · Dropped: {{ diff.dropped_count }}

{% if diff.shifted_windows or diff.added_in_b or diff.dropped_from_a %} {% for item in diff.shifted_windows %} {% endfor %} {% for item in diff.added_in_b %} {% endfor %} {% for item in diff.dropped_from_a %} {% endfor %}
ChangeAntigenSequenceConstruct / Pool
shifted {{ item.antigen_a | e }}{% if item.antigen_b != item.antigen_a %} → {{ item.antigen_b | e }}{% endif %} {{ item.sequence_a | e }}
→ {{ item.sequence_b | e }}
{{ item.construct_a | e }} → {{ item.construct_b | e }}
added {{ item.antigen_label | e }} {{ item.sequence | e }} {{ item.construct_name | e }}{% if item.pool is not none %} (Pool {{ item.pool }}){% endif %}
dropped {{ item.antigen_label | e }} {{ item.sequence | e }} {{ item.construct_name | e }}{% if item.pool is not none %} (Pool {{ item.pool }}){% endif %}
{% endif %} {% endif %} {% endfor %}