{% macro gtcall_panel(variant) %}
GT call {% if variant.is_par %} PAR {% endif %}
{% for sample in variant.samples %} {% if sample.allele_depths %} {% for number in sample.allele_depths %} {% endfor %} {% else %} {% endif %} {% endfor %}
Sample Genotype (GT) Allele depth (AD) Genotype quality (GQ)
Reference Alternative
{{ sample.display_name }} {{ sample.genotype_call }}{{ number }}N/A N/A{{ sample.genotype_quality }}
{% endmacro %} {% macro frequencies(variant) %}
Frequencies
{% for freq_name, value, link in variant.frequencies %} {% endfor %}
Source Frequency
{% if link %} {{ freq_name }} {% else %} {{ freq_name }} {% endif %} {% if value %} {{ value|human_decimal }} {% else %} - {% endif %}
{% endmacro %} {% macro observations_panel(variant, observations, case) %}
Local observations
Nr obs. Nr homo. Total nr.
{{ observations.observations|default('N/A') }} {{ observations.homozygote|default('N/A') }} {{ observations.total }}
{% endmacro %} {% macro old_observations(variant, obs_date) %}
Local observations (archive {{obs_date or '2017-05-31'}})
Nr obs. Nr homo. Total nr.
{{ variant.local_obs_old or 'N/A' }} {{ variant.local_obs_hom_old or 'N/A' }} {{ variant.local_obs_total_old or 638 }}
{% endmacro %} {% macro severity_list(variant) %}
Severity
{% endmacro %} {% macro conservations(variant) %}
Conservation
{% endmacro %} {% macro mappability(variant) %}
Mappability (fracMatch)
{% set superdups_fracmatches = [] %} {% for gene in variant.genes %} {% for transcript in gene.transcripts %} {% if transcript.superdups_fracmatch %} {% for superdup in transcript.superdups_fracmatch %} {% do superdups_fracmatches.append(superdup) %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% set superdups_fracmatches = superdups_fracmatches|sort %}
{% if superdups_fracmatches %} mapping to {{superdups_fracmatches|length}} segm. dups. (min matching:{{ superdups_fracmatches|first|float|round(3) }}, max matching:{{ superdups_fracmatches|last|float|round(3) }}) {% else %}

-

{% endif %}
{% endmacro %}