=== Input coverage ===
Counts describe recorded source identities, deduplicated across inputs. They are not independent events, reference models, RNA reads, peptide occurrences or unique products.
No supplied evidence recorded does not establish that a family was assessed or excluded. Retained predictions do not prove complete inference coverage.
{% if not input_coverage.available %}Source inventory not recorded; historical input denominators are unknown.{% endif %}
{% set quiet = namespace(names=[]) %}
{% for family in input_coverage.families %}{% if family.status != 'Supplied' and not family.records and not family.ranked and not family.represented %}{% set quiet.names = quiet.names + [family.name] %}{% else %}
{{ family.name }}: {{ family.status }}
  Recorded sources: {{ family.records if family.records is not none else 'Unknown' }}; admitted: {{ family.admitted if family.admitted is not none else 'Unknown' }}; ranked: {{ family.ranked if family.ranked is not none else 'Unknown' }}; in products: {{ family.represented if family.represented is not none else 'Unknown' }}
{% endif %}{% endfor %}
{% if quiet.names %}{{ '\n' }}No supplied evidence recorded: {{ quiet.names | join(', ') }}.
{% endif %}In products uses retained mappings from actual products; unknown also covers analysis-only reports.
{% for expression in input_coverage.expression %}Expression features: {{ expression.decisions | length }}; {{ expression.contract.measurement_level }} / {{ expression.contract.expression_unit }}; sample {{ expression.contract.sample_id }}; assay {{ expression.contract.assay }}
{% endfor %}
{% for original in input_coverage.direct %}
Original variant observation: {{ original.input_id }}; Vaxrank {{ original.producer_version }}
Unit: {{ original.unit }}; {{ original.stage }}
Distinct observations of one input are separate histories and must not be added.
{% for key, label in [('loaded', 'Parsed variants loaded'), ('annotatable', 'Variants with annotation results'), ('coding_effect', 'Coding-effect variants'), ('coding_with_rna_protein', 'Coding-effect variants with an RNA-derived protein'), ('with_candidate_windows', 'Variants with candidate windows')] %}{{ label }}: {{ original.counts[key] if original.counts[key] is not none else "Not assessed at this stage" }}
{% endfor %}{% endfor %}
{% if not input_coverage.direct %}Original VCF/BAM stage counts: unknown (not retained). Surviving rows cannot recover that denominator.{% endif %}
{% for group in input_coverage.producer_summaries %}
Producer summary: {{ group.family }} / {{ group.sample }}; events: {{ group.events }}; reference models: {{ group.models if group.models is not none else 'Unknown' }}; resolved coding candidates: {{ group.candidates }}; RNA reconstructions: {{ group.rna_reconstructions if group.rna_reconstructions is not none else 'Unknown' }}; states: {{ group.states }}
{% endfor %}
