{# Single-sample chimerism report, PDF layout (issue #35). Shares every section with the HTML report through macros.html; the only differences are structural: the on-screen "how it works" disclosures are suppressed inline (show_help=False) and collected into a "Methods and notes" appendix at the end, so nothing is hidden in a printed document. Selected by `--pdf`; override via --template by dropping a pdf/report.html into your template directory. #} {% extends "base.html" %} {% import "macros.html" as m %} {% block body %} {# Running header element: repeated at the top of every printed page (see pdf/styles.css @top-center). Removed from normal flow by `position: running`. #}
{{ title }}
{{ m.header(header_rows) }}

Result

QC verdict
{{ badge(analysis.qc_status, large=True) }}
{% if "donors" in analysis %} {% for d in analysis.donors %} {{ m.figure_card("Donor " ~ loop.index ~ " fraction", d.donor_pct | pct_value, ci(d.ci_lo, d.ci_hi, as_pct=False)) }} {% endfor %} {{ m.figure_card("Combined donor", analysis.total_donor_pct | pct_value) }} {{ m.figure_card("Host (recipient)", analysis.host_pct | pct_value) }} {% else %} {{ m.figure_card("Donor fraction", analysis.donor_pct | pct_value, ci(analysis.ci_lo, analysis.ci_hi, as_pct=False)) }} {{ m.figure_card("Host (recipient)", analysis.host_pct | pct_value, ci(host_ci_lo, host_ci_hi, as_pct=False)) }} {% endif %}
{% if "donors" not in analysis %}
Sample sensitivity (as a donor fraction): limit of blank {{ analysis.lob_pct | pct_value }}, limit of detection {{ analysis.lod_pct | pct_value }}.
{% endif %}
{{ m.host_presence(host_presence.hp, host_presence.detected, show_help=False) }} {{ m.qc_panel(qc, show_help=False) }} {{ m.footer(version, params, citation, timestamp, show_run_command=False) }}

Methods and notes

{{ m.help_fractions() }} {{ m.help_host_presence() }} {{ m.help_qc() }} {{ m.run_command(params) }}
{% endblock %}