{% if filetype == "html" %} {% endif %}
{% if filetype == "html" %}
RiboMetric Summary {% if report_context.tier_sections %} {% for section in report_context.tier_sections %} Tier {{section.tier}} {% endfor %} {% endif %} {% if report_context.diagnostics %} Diagnostics {% endif %} {% for plot in plots %} {{plot.name}} {% endfor %}
{% endif %}
{% if filetype == "pdf" %} {% endif %} {# ── Hero ───────────────────────────────────────────────────── #}

RiboMetric Report

Analysis of {{file_names.bam}}{% if 'annotation' in file_names %} with {{file_names.annotation}}{% endif %}. Completed {{completion_time}}.

{{report_context.overall_status}}

{{report_context.interpretation}}

{# ── Context strip ───────────────────────────────────────── #} {% if report_context.context_strip %}
Library type {{report_context.context_strip.library_type}} Dominant read length {{report_context.context_strip.dominant_read_length}} Total reads {{report_context.context_strip.total_reads}} Annotation {{report_context.context_strip.annotation}}
{% endif %}
{# ── Tier tables + summary bar chart side-by-side ────────────── #}
{% if report_context.tier_sections %} {% for section in report_context.tier_sections %}

{{section.heading}}

{{section.subtitle}}

{% for metric in section.metrics %} {% endfor %}
Metric Raw value Score Status
{{metric.label}}
{{metric.description}}
{{metric.raw_label}} {{metric.score_label}} {{metric.status}}
{% endfor %} {% else %} {# fallback: old grouped layout if tier data is absent #}

Metric Summary

{% for group in report_context.grouped_metrics %}

{{group.name}}

{% for metric in group.metrics %} {% endfor %}
MetricRawScoreStatus
{{metric.label}} {{metric.raw_label}} {{metric.score_label}} {{metric.status}}
{% endfor %} {% endif %}
{% if filetype == "html" %}
{{summary.plot.fig_html}}
{% endif %}
{# ── Diagnostics ─────────────────────────────────────────────── #} {% if report_context.diagnostics %}

Diagnostics

These values describe shape, context, or experiment-specific behaviour. They are shown as raw measurements — not scored — because their interpretation depends on protocol or library type.

{% for d in report_context.diagnostics %} {% endfor %}
MetricValueNote
{{d.label}} {{d.raw_label}} {% if d.caption %}{{d.caption}}{% endif %}
{% endif %} {# ── Plots ───────────────────────────────────────────────────── #} {% for plot in plots %}

{{plot.name}}

{{plot.description}}

{% if filetype == "html" %} {{plot.fig_html}} {% elif filetype == "pdf" %} {% endif %}
{% endfor %}