{% extends "layout_bs4.html" %} {% from "utils.html" import comments_table %} {% from "variants/utils.html" import sv_filters %} {% from "variants/components.html" import frequency_cell_general %} {% block title %} {{ super() }} - {{ institute.display_name }} - {{ case.display_name }} - SV variants {% endblock %} {% block css %} {{ super() }} {% endblock %} {% block top_nav %} {{ super() }} {% endblock %} {% block top_nav_right %} {{ super() }} {% endblock %} {% block content_main %}
{{ sv_filters(form, institute, case) }}
{% for variant in variants %} {{ variant_row(variant) }} {% else %} {% endfor %}
Rank Score Type Chr Start loc Stop loc Length Region Function Frequency Gene(s)
No matching variants
{{ pagination() }}
{% endblock %} {% macro cell_rank(variant) %} {{ variant.variant_rank }} {% set comment_count = variant.comments.count() %} {% if variant.manual_rank %} {{ manual_rank_options[variant.manual_rank]['label'] }} {% endif %} {% if comment_count > 0 %} {% set comments_content = comments_table(institute, case, variant.comments, variant._id) %} {{ comment_count }} {% if 'GLOBAL' in comments_content %} {% endif %} {% endif %} {% if variant._id in case.suspects %} {% endif %} {% if form.variant_type.data == 'research' %} {% if variant.clinical_assessments %} {% for assessment in variant.clinical_assessments %} {{ assessment.label }} {% endfor %} {% endif %} {% endif %} {% endmacro %} {% macro variant_row(variant) %} {% if variant.dismiss_variant %} {% else %} {% endif %} {{ cell_rank(variant) }} {{ variant.rank_score|int }} {{ variant.sub_category|upper }} {{ variant.chromosome if variant.chromosome == variant.end_chrom else variant.chromosome+'-'+variant.end_chrom }} {{ variant.position }} {{ 'inf' if variant.end == 100000000000 else variant.end }} {{ variant.length }} {% if 'region_annotations' in variant %} {% for annotation in variant.region_annotations[:3] %}
{{ annotation }}
{% endfor %} {% endif %} {% if 'functional_annotations' in variant %} {% for annotation in variant.functional_annotations[:3] %}
{{ annotation }}
{% endfor %} {% endif %} {{ frequency_cell_general(variant) }}
{% if variant.hgnc_symbols|length >= 5 %} {{ variant.hgnc_symbols[:2]|join(', ') }} [...] {{ variant.hgnc_symbols[-2:]|join(', ') }} {% else %} {% for symbol in variant.hgnc_symbols %}
{{ symbol }}
   {% endfor %} {% endif %}
{% if variant.hgnc_symbols %} {{ variant.hgnc_symbols|length }} {% endif %}
{% endmacro %} {% macro pagination() %}
{% if more_variants %}
{% else %} No more variants to display {% endif %}
{% endmacro %} {% block scripts %} {{ super() }} {% endblock %}