{% extends "layout.html" %} {% from "overview/institute_sidebar.html" import institute_actionbar %} {% from "utils.html" import db_table_external_scripts, db_table_external_stylesheets %} {% block title %} {{ super() }} - Institutes {% endblock %} {% block css %} {{ super() }} {{ db_table_external_stylesheets() }} {% endblock %} {% block top_nav %} {{ super() }} {% endblock %} {% block content_main %}
{{ institute_actionbar(institute) }}
{{ causatives() }}
{% endblock %} {% block scripts %} {{ super() }} {{ db_table_external_scripts() }} {% endblock %} {% macro causatives() %}
{% for _, group in variant_groups.items() %} {% set group_variant = group[0][1] %} {% for case, variant in group %} {% if (case.causatives and variant._id in case.causatives) or (case.partial_causatives and variant._id in case.partial_causatives) %} {% endif %} {% endfor %} {% endfor %}
Gene Variant Change HGVS[c] HGVS[p] Category Rank score Zygosity Inheritance ACMG Case
{{ variant.hgnc_symbols|join(', ') if variant.hgnc_symbols else '--'}} {{ variant.display_name|truncate(10, True) }} {% if group_variant.category in 'str' %} {{ group_variant.alternative|truncate(10, True) | replace("<", " ") | replace(">", "")}} {% else %} {{ group_variant.reference|truncate(10, True) }} → {{ group_variant.alternative|truncate(10, True) }} {% endif%} {% if variant.first_rep_gene and variant.first_rep_gene.hgvs_identifier %} {{variant.first_rep_gene.hgvs_identifier|truncate(15, True)}} {% else %} - {% endif %} {% if variant.first_rep_gene and variant.first_rep_gene.hgvsp_identifier %} {{variant.first_rep_gene.hgvsp_identifier|truncate(15, True)}} {% else %} - {% endif %} {{ variant.category|upper }} {{ variant.rank_score }} {% if variant.category == 'sv' %} (v. {{case.sv_rank_model_version or 'na'}}) {% else %} (v. {{case.rank_model_version or 'na'}}) {% endif %} {%- for sample in variant.samples -%} {%- for ind in case.individuals -%} {%- if sample.sample_id == ind.individual_id -%} {% set allele_depths = ['ref depth', sample.allele_depths[0]]|join(":") + ' - ' + ['alt depth', sample.allele_depths[1]]|join(":") %} {{sample.genotype_call}} GQ:{{sample.genotype_quality}} {%- endif -%} {%- endfor -%} {%- endfor -%} {% for model in variant.genetic_models %} {{model}} {% endfor %} {% if 'acmg_classification' in variant %} {{acmg_map[variant.acmg_classification].short}} {% else %} - {% endif %} {{ case.display_name }} {% if (case.partial_causatives and variant._id in case.partial_causatives) %} partial {% endif %} {{ case.status }}
{% endmacro %}