{% from "variants/utils.html" import tier_cell %} {% macro pretty_link_variant(variant, case) %} {# Returns human readable links to the corresponding variant page #} {% if variant.category in "str" %} {{ variant.str_repid }} {{ variant.alternative }} {% 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) }} {% 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) }} {% endif %} {% endfor %} {% if not display_genes %} {{ "" if display_genes.append( variant.simple_id ) }} {% endif %} {{ display_genes|join(", ") }} {% else %} {{ variant.sub_category|upper }}({{ variant.chromosome }}{{ variant.cytoband_start }}-{{ variant.chromosome }}{{ variant.cytoband_end }}) {% endif %} {% endmacro %} {% macro causatives_list(causatives, partial_causatives, institute, case) %}
Causative variants
{% endmacro %} {% macro allele_div(allele, type) %} {% if 'alt_freq' in allele %}
{{ allele.alt_freq|round(4) }}
{% endif %} {% endmacro %} {% macro suspects_list(suspects, institute, case, manual_rank_options, cancer_tier_options) %}
Pinned variants
{% endmacro %} {% macro matching_causatives(other_causatives, institute, case) %}
Matching causatives from other cases
{% endmacro %} {% macro remove_form(url, hidden_input=None, button_name=None, button_value=None) %}
{% if hidden_input %} {% endif %}
{% endmacro %}