{% macro disease_associated(variant) %}
{% set ns = namespace(gene='') %}
{% for transcript in variant.disease_associated_transcripts %}
{% set ns.gene = transcript.split(":")[0] != ns.gene %}
{% if ns.gene and loop.index > 1%}
{{transcript.split(":")[0]}}: {% elif ns.gene %} {{transcript.split(":")[0]}}: {% endif %} {{transcript.split(":")[1]}} {% set ns.gene = transcript.split(":")[0] %} {% else %} - {% endfor %} |
Gene | Refseq IDs | ID | HGVS Description | Links |
---|---|---|---|---|
{{ tx.hgnc_symbol if tx.hgnc_symbol else tx.hgnc_id }} | {% if tx.decorated_refseq_ids or tx.muted_refseq_ids %} {{tx.decorated_refseq_ids|join(", ")}} {{tx.muted_refseq_ids|join(", ")}} {% else %} Check complete list of transcripts {% endif %} | {{ tx.transcript_id }} {% if tx.is_primary %} P {% endif %} {% if tx.mane %} M {% endif %} {% if tx.mane_plus %} M+ {% endif %} {% if tx.is_canonical %} C {% endif %} | {% set hgvs_c = (tx.coding_sequence_name or '')|truncate(20, True) %} {% if variant.chromosome in ["MT","M"] %} {% set mt_notation = "m." ~ variant.position ~ variant.reference ~ ">" ~ variant.alternative %} {{ mt_notation|truncate(20,True) }} ({{ hgvs_c }}) {% else %} {{ hgvs_c }} {% endif %} {{ (tx.protein_sequence_name or '')|url_decode }} | {% if tx.mutalyzer_link %} M {% endif %} {% if tx.varsome_link %} V {% endif %} {% if tx.tp53_link %} TP53 {% endif %} {% if tx.cbioportal_link %} CBP {% endif %} {% if tx.mycancergenome_link %} MCG {% endif %} |