Skip to content

Commit

Permalink
Fix for broken link-out into MutationTaster (#240).
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Nov 22, 2021
1 parent 6a97c82 commit 23a97ba
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -11,6 +11,7 @@ End-User Summary

- Fixing Kiosk mode of VarFish.
- Fixing displaying of beacon information in results table.
- Fix for broken link-out into MutationTaster (#240).

Full Change List
================
Expand All @@ -21,6 +22,7 @@ Full Change List
- Kiosk annotation now uses ``set -x`` flag if ``settings.DEBUG`` is true.
- Mapping kiosk jobs to import queue.
- Fixing displaying of beacon information in results table.
- Fix for broken link-out into MutationTaster (#240).

-------
v0.23.9
Expand Down
9 changes: 0 additions & 9 deletions varfish/static/js/filter_form.js
Expand Up @@ -117,15 +117,6 @@ $(document).ready(function() {
$(".checkboxinput").change(updateCheckboxes);
});

function mutationTaster(chromosome, position, ref, alt) {
var form = $('<form target="_blank" method="POST" action="http://www.mutationtaster.org/cgi-bin/MutationTaster/MT_ChrPos.cgi">');
form.append($('<input type="hidden" name="chromosome" value="' + chromosome + '">'));
form.append($('<input type="hidden" name="position" value="' + position + '">'));
form.append($('<input type="hidden" name="ref" value="' + ref + '">'));
form.append($('<input type="hidden" name="alt" value="' + alt + '">'));
form.appendTo('body').submit();
}

function polyPhen2(gene, hgvsP) {
const regex = /^p.([A-Z])(\d+)([A-Z])$/;
const found = hgvsP.match(regex);
Expand Down
24 changes: 17 additions & 7 deletions variants/templates/variants/filter_result/row.html
Expand Up @@ -442,13 +442,23 @@
{% endif %}
<td>
<div class="btn-group sodar-list-btn-group pr-2">
<a
href="javascript:mutationTaster('chr{{ entry.chromosome }}', {{ entry.start }}, '{{ entry.reference }}', '{{ entry.alternative }}');"
data-toggle="tooltip"
title="Open variant in MutationTaster"
class="btn btn-primary sodar-list-btn">
MT
</a>
{% if entry.release == "GRCh37" %}
<a
href="javascript:mutationTaster('chr{{ entry.chromosome }}', {{ entry.start }}, '{{ entry.reference }}', '{{ entry.alternative }}');"
data-toggle="tooltip"
title="Open variant in MutationTaster"
class="btn btn-primary sodar-list-btn">
MT
</a>
{% else %}
<span
class="btn btn-disabled sodar-list-btn btn-outline-secondary"
data-toggle="tooltip"
title="MutationTaster not available for genome {{ entry.release }}"
>
MT
</span>
{% endif %}
{% if ga4gh_beacon_network_widget_enabled or kiosk_mode %}
<a
data-toggle="popover"
Expand Down

0 comments on commit 23a97ba

Please sign in to comment.