{% extends "cases/case_tabular_view.html" %} {% from "utils.html" import comments_panel, activity_panel %} {% from "cases/utils.html" import individuals_table, sex_table_cell_content %} {% from "variants/components.html" import gene_link %} {% from "variant/gene_disease_relations.html" import incomplete_penetrance_badge, inheritance_badge %} {% block title %} {{ super() }} {% endblock %} {% block css %} {{ super() }} {% endblock %} {% block top_nav %} {{ super() }} {% endblock %} {% block content_main %}
{% if case.smn_tsv %} {{ smn_case_page() }} {% endif %} {% if case.paraphrase %} {{ paraphrase_case_page() }} {% endif %}
{% if case.madeline_info and case.individuals|length > 1 %} {{ pedigree_panel() }} {% else %}

No pedigree picture available.

{% endif %}
{{ synopsis_panel() }}
{{ comments_panel(institute, case, current_user, comments) }}
{{activity_panel(events)}}
{% endblock %} {% macro paraphrase_case_page() %}
Dark regions - Paraphrase annotation of Paraphase - Individuals
{% for region_name, region in paraphrase_regions.items() %}
{% set ns = namespace(paraphrase_keys=[]) %} {% for ind in case.individuals %} {% for subtable_key in ind.paraphrase[region_name].keys() %} {% if subtable_key not in ["status", "status_matches", "genes_in_region", "phase_region"] and subtable_key not in ns.paraphrase_keys %} {% set ns.paraphrase_keys = ns.paraphrase_keys + [subtable_key] %} {% endif %} {% endfor %} {% endfor %} {% for ind in case.individuals %} {% endfor %}
Sample Sex Phenotype Paraphrase {{ region_name }}
{{ ind.display_name }} {{ sex_table_cell_content(ind) }} {{ ind.phenotype_human }} {{ show_paraphrase_value(ind.paraphrase[region_name], ns.paraphrase_keys) }}
{% if case.vcf_files.vcf_snv %}
{% endif %} {% if case.vcf_files.vcf_sv %}
{% endif %} {% if "phase_region" in region %} IGV DNA {% endif %}
{% endfor %}
{% endmacro %} {% macro show_paraphrase_value(paraphrase_value, paraphrase_keys=None) %} {% if paraphrase_value is mapping %} {% if paraphrase_keys %} {% set subtable_keys = paraphrase_keys %} {% else %} {% set ns = namespace(subtable_keys=[]) %} {% for subtable_key in paraphrase_value.keys() %} {% if subtable_key not in ["status", "status_matches", "genes_in_region", "phase_region"] %} {% set ns.subtable_keys = ns.subtable_keys + [subtable_key] %} {% endif %} {% endfor %} {% set subtable_keys = ns.subtable_keys %} {% endif %} {% for subtable_key in subtable_keys %} {% endfor %} {% for subtable_key in subtable_keys %} {% endfor %}
{{ subtable_key }}
{% if subtable_key in paraphrase_value %}{{ show_paraphrase_value(paraphrase_value[subtable_key]) }}{% else %}-{% endif %}
{% elif paraphrase_value is string or paraphrase_value is integer or paraphrase_value is float %} {{ paraphrase_value }} {% elif paraphrase_value is sequence %} {{ paraphrase_value | join(', ') }} {% endif %} {% endmacro %} {% macro smn_case_page() %}
SMN Copy Number status - Individuals
{{ smn_individuals_table(case, institute, tissue_types) }}
{% if case.vcf_files.vcf_snv %}
{% endif %} {% if case.vcf_files.vcf_sv %}
{% endif %} IGV DNA SMN1 IGV DNA SMN2
{{ modal_synopsis() }}
{% endmacro %} {% macro smn_individuals_table(case, institute, tissues) %}
{% for ind in case.individuals %} {% endfor %}
Sample Sex Phenotype SMA Carrier SMN1 CN SMN2 CN SMN2Δ7–8_CN g.27134T>G CN Ancestry (pred.) Tissue
{{ ind.display_name }} {{ sex_table_cell_content(ind) }} {{ ind.phenotype_human }} {{ ind.is_sma }} {{ ind.is_sma_carrier }} {{ ind.smn1_cn }} {{ ind.smn2_cn }} {{ ind.smn2delta78_cn }} {{ ind.smn_27134_cn }} {{ ind.predicted_ancestry or 'N/A' }} {{ ind.tissue_type }}
{% endmacro %} {% block scripts %} {{ super() }} {% endblock %}