{% 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 |
---|---|---|---|---|
{{ gene.common.hgnc_symbol if gene.common else gene.hgnc_id }} | {{ transcript.refseq_identifiers|join(", ") }} |
{{ transcript.transcript_id }}
{% if gene.common and transcript.refseq_id in gene.common.primary_transcripts %}
P
{% endif %}
{% if transcript.mane_transcript %}
{% set mane_transcript_parts = transcript.mane_transcript.split('.') %}
{% if mane_transcript_parts[0] == refseq_id %}
(MANE)
{% endif %}
{% endif %}
{% if transcript.is_canonical %}
C
{% endif %}
|
{{ (transcript.coding_sequence_name or '')|truncate(20, True) }} {{ (transcript.protein_sequence_name or '')|url_decode }} | {% if transcript.varsome_link %} V {% endif %} {% if transcript.tp53_link %} TP53 {% endif %} {% if transcript.cbioportal_link %} CBP {% endif %} {% if transcript.mycancergenome_link %} MCG {% endif %} |