=== Mass-spectrometry (MS) immunopeptidomics evidence ===
Each peptide counts once per scope. A shared emitted sequence can represent several ranked sources.
Run-level counts:
  Queried distinct short peptides: {{ ms_report.run_counts.queried_distinct_peptides }}
  With eligible public observations: {{ ms_report.run_counts.with_eligible_public_observations }}
  With typed-source overlap: {{ ms_report.run_counts.with_typed_source_overlap }}
  With direct matching restriction: {{ ms_report.run_counts.with_direct_matching_restriction }}
  Verified monoallelic on different allele: {{ ms_report.run_counts.with_different_allele_monoallelic }}
  Unavailable queries: {{ ms_report.run_counts.unavailable_queries }}
  Source rows gaining score: {{ ms_report.run_counts.source_rows_with_score_gain }}
  Unique emitted antigen windows gaining score: {{ ms_report.run_counts.unique_emitted_windows_with_score_gain }}
{% for design in ms_report.designs %}
Emitted design ({{ design.modality }}) counts:
  Queried distinct short peptides: {{ design.counts.queried_distinct_peptides }}
  With eligible public observations: {{ design.counts.with_eligible_public_observations }}
  With typed-source overlap: {{ design.counts.with_typed_source_overlap }}
  With direct matching restriction: {{ design.counts.with_direct_matching_restriction }}
  Verified monoallelic on different allele: {{ design.counts.with_different_allele_monoallelic }}
  Unavailable queries: {{ design.counts.unavailable_queries }}
  Source rows gaining score: {{ design.counts.source_rows_with_score_gain }}
  Unique emitted antigen windows gaining score: {{ design.counts.unique_emitted_windows_with_score_gain }}
{% endfor %}
{% if ms_report.detail_rows %}
Captured MS evidence details:
{% for row in ms_report.detail_rows %}  {{ row.peptide }} [{{ row.genes | join(', ') if row.genes else 'unknown' }}]: {{ row.printable_summary or row.label }}
{% endfor %}{% endif %}
