{% extends "variants/variants_layout.html" %} {% from "variants/components.html" import allele_cell, assessment_badges, cadd_cell, gene_cell, frequency_cell_general, observed_cell_general, variant_funct_anno_cell %} {% from "variants/utils.html" import callers_cell, cancer_filters, filter_form_footer, rank_score_cell, variant_link_href %} {% from "variants/indicators.html" import pin_indicator %} {% block category_title %} somatic variants {% endblock %} {% block variants_form_action %} {{url_for('variants.cancer_variants', institute_id=institute._id, case_name=case.display_name)}} {% endblock %} {% block variants_filter %} {{ cancer_filters(form, institute, case) }} {% endblock %} {% block variants_filter_form_footer %} {{ filter_form_footer(form, result_size, total_variants, page, variants|length, institute) }} {% endblock %} {% block variants_table_header %} Gene HGVS[c/p] Assessment Score CADD Chr pos Pop Freq Observed Type Callers Consequence Tumor Normal {% endblock %} {% block variants_table_rows %} {% for variant in variants %} {{ cancer_variant_row(variant, institute, case) }} {% else %} No matching variants {% endfor %} {% endblock %} {% macro cancer_variant_row(variant, institute, case) %} {% elif 'causatives' in case and variant._id in case.causatives %} class="causative"> {% else %} > {% endif %} {{ pin_indicator(variant, case) }} {{ gene_cell(variant) }} {% if variant.first_rep_gene.hgvs_identifier %}
{{ variant.first_rep_gene.hgvs_identifier|truncate(30, True) }}
{{ (variant.first_rep_gene.hgvsp_identifier or '') |url_decode|truncate(30, True) }}
{% else %}
{{ variant.reference|truncate(30, True) }}→ {% if variant.alternative | length > 5 %} {{ variant.alternative[0] }}...{{ variant.alternative[-1] }} {% else %} {{ variant.alternative|truncate(30, True) }} {% endif %}
{% endif %}
{{ assessment_badges(variant, case) }} {{ rank_score_cell(variant) }} {{ cadd_cell(variant) }} {{ position_cell(variant) }} {{ frequency_cell_general(variant) }} {{ observed_cell_general(variant) }} {{ variant.sub_category|upper }} {{ callers_cell(variant) }} {{ variant_funct_anno_cell(variant) }} {{ allele_cell(variant.tumor or {}) }} {{ allele_cell(variant.normal or {}) }} {% endmacro %} {% macro actions_cell(variant) %} View {% if variant.comments %} {% endif %} {% endmacro %} {% macro position_cell(variant) %} {{ variant.chromosome }}:{{ variant.position }} {% endmacro %}