{% from "variants/indicators.html" import clinical_assessments_badge, research_assessments_badge %} {% macro matchmaker_modal(institute, case, suspects, mme_nodes ) %}
{% endmacro %} {% macro modal_mme_delete(institute, case) %} {% endmacro %} {% macro beacon_modal(institute, case) %} {% endmacro %} {% macro pretty_variant(variant) %} {% if variant.category %} {% if variant.category in "str" %} {% if variant.str_repid %} {{ variant.str_repid }} {% elif variant.str_trid %} {{ variant.str_trid }} {% else %} {% for gene in variant.genes %} {{ gene.symbol }} {% endfor %} {% endif %} {% if variant.str_mc %} STR{{ variant.str_mc }} {% else %} {{ variant.alternative|truncate(20,True) }} {% endif %} {% elif variant.category in ("snv", "cancer") %} {% set display_genes = [] %} {% for gene in variant.genes %} {% if gene.hgvs_identifier and gene.hgnc_symbol %} {{ "" if display_genes.append(gene.hgnc_symbol + ' ' + gene.hgvs_identifier|truncate(20,True)) }} {% elif gene.hgnc_symbol %} {{ "" if display_genes.append(gene.hgnc_symbol) }} {% elif gene.hgvs_identifier and gene.hgnc_id %} {{ "" if display_genes.append( gene.hgnc_id|string + ' ' + gene.hgvs_identifier|truncate(20,True)) }} {% endif %} {% endfor %} {% if not display_genes %} {{ "" if display_genes.append( variant.simple_id|truncate(40,True) ) }} {% endif %} {{ display_genes|join(", ") }} {% elif variant.category == "outlier" %} {{ variant.sub_category|upper }} - {% if variant.genes %} {% for gene in variant.genes %} {% if gene.hgnc_symbol %} {{ gene.hgnc_symbol }} {% else %} {{gene.hgnc_id}} {% endif %} {% endfor %} {% else %} {{ variant.gene_name_orig }}{% endif %} - {% if variant.sub_category == "splicing" %} {{ variant.delta_psi }}Δψ {{ variant.potential_impact }} - fs {{ variant.causes_frameshift }} {% elif variant.sub_category == "expression" %} {{ variant.l2fc }}{% if variant.l2fc > 0 %}↑{% elif variant.l2fc < 0 %}↓{% endif %} {% elif variant.sub_category == "methylation" %} {{ variant.compare_label }} {{ variant.cpg_label.split("_")[0] }} {% endif %} {% else %} {{ variant.sub_category|upper }}({{ variant.chromosome }}{{ variant.cytoband_start }}-{{ variant.end_chrom }}{{ variant.cytoband_end }}) {% endif %} {% endif %} {% endmacro %} {% macro pretty_link_variant(variant, case) %} {# Returns human readable links to the corresponding variant page #} {% if variant.category in ("mei", "snv") %} {% elif variant.category == "str" %} {% elif variant.category == "cancer" %} {% elif variant.category == "outlier" %} {% else %} {% endif %} {{ pretty_variant(variant) }} {% endmacro %} {% macro variant_validation_badge(variant) %} {% if variant.validation == 'True positive' %} Validated {% elif variant.validation == 'False positive' %} Validated {% elif variant.sanger_ordered %} Verification ordered {% endif %} {% endmacro %} {% macro tumor_allele_freq(variant) %} {% if variant.tumor %} {{ allele_div(variant.tumor, "Tumor") }} {% endif %} {% if variant.normal %} {{ allele_div(variant.normal, "Normal") }} {% endif %} {% endmacro %} {% macro causatives_list(causatives, partial_causatives, evaluated_variants, institute, case, manual_rank_options, cancer_tier_options) %} {% set already_displayed_variant_ids = [] %}