=== Candidate ranking ===
Ranked source windows and combined scores. Final sequences and placements are listed under Emitted products.
{% for candidate in ranked_candidates %}
{{ candidate.rank }}. {{ candidate.gene }} ({{ candidate.kind }}), {{ candidate.source_id }}; score {{ candidate.score }}{% if candidate.qualifying_timepoints %} [{{ candidate.qualifying_timepoints | join(', ') }}]{% endif %}{% if candidate.longitudinal_badge %} [{{ candidate.longitudinal_badge }}]{% elif candidate.qualified_only_earlier %} [Earlier TP only]{% endif %}{{ '' }}
   Top candidate window: {{ candidate.window }}{% if candidate.window_count > 1 %} ({{ candidate.window_count }} retained windows){% endif %}{{ '' }}
{% if candidate.ms_summary and candidate.ms_summary.tier != 'none' %}   MS evidence: {{ candidate.ms_summary.printable_summary }}
{% endif %}   Linked products: {{ candidate.products }}
{% for outcome in candidate.assembly_outcomes %}   {{ outcome.modality }}: {{ outcome.outcome | replace('_', ' ') }}{% if outcome.shared %}; shared exact sequence{% endif %}{{ '' }}
{% endfor %}{% if candidate.window_decisions %}   Window decisions: {{ candidate.window_decisions | join(', ') }}.
{% endif %}
{% else %}No candidates passed ranking.
{% endfor %}
{% if ranked_candidates and not candidate_details %}
Use --report-candidate-details to include grouped source windows and epitope tables.
{% endif %}
