Skip to content

Commit

Permalink
Fixing ensembl gene link-out to wrong genome build (#156). (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Dec 7, 2021
1 parent c1b9355 commit 084c929
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ End-User Summary
- Fix for broken link-out into MutationTaster (#240).
- Fixing SODAR Core template inconsistency (#150).
- Imports via API now are only allowed for projects of type ``PROJECT`` (#237).
- Fixing ensembl gene link-out to wrong genome build (#156).

Full Change List
================
Expand All @@ -41,6 +42,7 @@ Full Change List
- Fix for broken link-out into MutationTaster (#240).
- Fixing SODAR Core template inconsistency (#150).
- Imports via API now are only allowed for projects of type ``PROJECT`` (#237).
- Fixing ensembl gene link-out to wrong genome build (#156).

-------
v0.23.9
Expand Down
4 changes: 2 additions & 2 deletions geneinfo/templates/gene_info/gene_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@
<i>No EnsEMBL gene id.</i>
</div>
{% elif gene.ensembl_gene_id %}
<a href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g={{ gene.ensembl_gene_id }}" target="_blank">
<a href="https://{% if small_var.release == "GRCh37" %}grch37{% else %}www{% endif %}.ensembl.org/Homo_sapiens/Gene/Summary?g={{ gene.ensembl_gene_id }}" target="_blank">
{{ gene.ensembl_gene_id }}
</a>
{% else %} {# small_var.ensembl_gene_id #}
<a href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g={{ small_var.ensembl_gene_id }}" target="_blank">
<a href="https://{% if small_var.release == "GRCh37" %}grch37{% else %}www{% endif %}.ensembl.org/Homo_sapiens/Gene/Summary?g={{ small_var.ensembl_gene_id }}" target="_blank">
{{ small_var.ensembl_gene_id }}
</a>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions svs/templates/svs/filter_result/row_sv.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@
<a class="dropdown-item" href="https://genome-euro.ucsc.edu/cgi-bin/hgTracks?db=hg19&position={{ first_entry.chromosome }}:{{ first_entry.start }}-{{ first_entry.end }}" target="_blank">
Locus @UCSC
</a>
<a class="dropdown-item" href="https://grch37.ensembl.org/Homo_sapiens/Location/View?r={{ first_entry.chromosome }}:{{ first_entry.start }}-{{ first_entry.end }}" target="_blank">
Locus @ENSEMBL
<a class="dropdown-item" href="https://{% if first_entry.release == "GRCh37" %}grch37{% else %}www{% endif %}.ensembl.org/Homo_sapiens/Location/View?r={{ first_entry.chromosome }}:{{ first_entry.start }}-{{ first_entry.end }}" target="_blank">
Locus @EnsEMBL
</a>
<a class="dropdown-item" href="http://dgv.tcag.ca/gb2/gbrowse/dgv2_hg19/?name={{ first_entry.chromosome }}:{{ first_entry.start }}-{{ first_entry.end }};search=Search" target="_blank">
Locus @DGV
Expand Down
4 changes: 2 additions & 2 deletions variants/templates/variants/filter_result/row.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
<a class="dropdown-item" href="https://www.ncbi.nlm.nih.gov/clinvar/?term={{ symbol }}" target="_blank">
Gene @ClinVar
</a>
<a class="dropdown-item" href="https://grch37.ensembl.org/Homo_sapiens/Gene/Summary?db=core;g={{ entry.ensembl_gene_id }}" target="_blank">
<a class="dropdown-item" href="https://{% if entry.release == "GRCh37" %}grch37{% else %}www{% endif %}.ensembl.org/Homo_sapiens/Gene/Summary?db=core;g={{ entry.ensembl_gene_id }}" target="_blank">
Gene @EnsEMBL
</a>
<a class="dropdown-item" href="https://stuart.radboudumc.nl/metadome/dashboard/transcript/{{ entry.ensembl_transcript_id }}/" target="_blank">
Expand Down Expand Up @@ -491,7 +491,7 @@
<a class="dropdown-item" href="https://genome-euro.ucsc.edu/cgi-bin/hgTracks?db=hg19&position={{ entry.chromosome }}:{{ entry.start }}-{{ entry.end }}" target="_blank">
Locus @UCSC
</a>
<a class="dropdown-item" href="https://grch37.ensembl.org/Homo_sapiens/Location/View?r={{ entry.chromosome }}:{{ entry.start }}-{{ entry.end }}">
<a class="dropdown-item" href="https://{% if entry.release == "GRCh37" %}grch37{% else %}www{% endif %}.ensembl.org/Homo_sapiens/Location/View?r={{ entry.chromosome }}:{{ entry.start }}-{{ entry.end }}" target="_blank">
Locus @EnsEMBL
</a>
<a class="dropdown-item" href="http://dgv.tcag.ca/gb2/gbrowse/dgv2_hg19/?name={{ entry.chromosome }}:{{ entry.start }}-{{ entry.end }};search=Search" target="_blank">
Expand Down

0 comments on commit 084c929

Please sign in to comment.