{% macro table(diagnostic_yield, id_map, show_genes=False) %}
{{ _('Sample') }} | {{ _('Fully covered transcripts') }} [%] | {{ _('Incompletely covered') }} {{ _('transcripts') }} | {% if show_genes %}{{ _('Incompletely covered') }} {{ _('genes') }} | {% endif %}
---|---|---|---|
{{ id_map[data.sample_id] or data.sample_id }} | {{ data.diagnostic_yield|round(3) }} | {{ data.count }} / {{ data.total_count }} | {% if show_genes %}{% for stat in data.transcripts %} {{ stat.transcript.gene_id }} {% else %} - {% endfor %} | {% endif %}