{{ report.title }}

{{ report.subtitle }}
Family {{ report.family_id }}
{% if report.cohort_name %}
Cohort {{ report.cohort_name }}
{% endif %}
Generated {{ report.generated_at }}{% if report.generated_by %} by {{ report.generated_by }}{% endif %}
{{ report.audience }}
{% macro cell(row, key) -%} {%- set value = row.get(key, '') -%} {%- set color = row.get('_' ~ key ~ '_color') -%} {%- if color and value -%} {%- if key in ('region', 'phenotype') -%} {{ value }} {%- else -%} {{ value }} {%- endif -%} {%- else -%}{{ value }}{%- endif -%} {%- if row.get('_' ~ key ~ '_note') -%}{{ row['_' ~ key ~ '_note'] }}{%- endif -%} {%- endmacro %} {% macro table(section) %} {% for key, header in section.columns %}{% endfor %} {% for row in section.rows %} {% for key, header in section.columns %}{% endfor %} {% endfor %}
{{ header }}
{{ cell(row, key) }}
{% endmacro %} {% set pedigree = report.section('pedigree') %}

1. {{ pedigree.title }}

{% if pedigree.rows %}{{ table(pedigree) }}{% else %}

No pedigree for this family.

{% endif %}

Curator conclusion

{% if report.summary %}
{{ report.summary.text }}{{ report.summary.user }}, {{ report.summary.date }}
{% else %}
No conclusion has been written for this family.
{% endif %}

Results at a glance

{% for s in report.sections if s.key != 'pedigree' %} {% endfor %}
{{ s.title }} {% if not s.available %}{{ s.note }}{% else %}{{ s.glance or s.note }}{% endif %}
{% for s in report.sections if s.key != 'pedigree' %}

{{ loop.index + 1 }}. {{ s.title }}{% if s.attention %}● needs attention{% endif %}

{% if not s.available %}

{{ s.note }}

{% elif s.note %}

{{ s.note }}

{% endif %}
{% if s.available %} {% if s.rows %}{{ table(s) }}{% endif %} {% if s.plots %}
{% for plot in s.plots %}
{{ plot.caption }}
{{ svg_of(plot) }} {% if plot.note %}
{{ plot.note }}
{% endif %}
{% endfor %}
{% endif %} {% for f in s.footnotes %}

{{ f }}

{% endfor %} {% endif %}
{% endfor %}

Methods

{% for title, text in report.methods %}

{{ title }}. {{ text }}

{% endfor %}