Skip to content

Commit

Permalink
Merge 04069cf into c6e8def
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jul 14, 2022
2 parents c6e8def + 04069cf commit 90ec32b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -31,6 +31,7 @@ End-User Summary
- Fixed smallvariant flags filter query (#502).
- Added flags `segregates`, `doesnt_segregate` and `no_disease_association` to file export (#502).
- Adjusting path to new varfish-annotator db download (#546).
- Adding feature to enable and configure link-out to HGMD (#576).

Full Change List
================
Expand Down Expand Up @@ -61,6 +62,7 @@ Full Change List
- Added flags `segregates`, `doesnt_segregate` and `no_disease_association` to file export (#502).
- Adjusting path to new varfish-annotator db download (#546).
- Fixing issue with sync-from-remote when no remote is defined (#570).
- Adding feature to enable and configure link-out to HGMD (#576).

------
v1.2.0
Expand Down
11 changes: 11 additions & 0 deletions config/settings/base.py
Expand Up @@ -567,6 +567,17 @@ def set_logging(level=None):
# Configure experimental SV filtration feature.
VARFISH_ENABLE_SVS = env.bool("VARFISH_ENABLE_SVS", default=False)

# Varfish: HGMD Professional
# ------------------------------------------------------------------------------

# Enable link-out to HGMD Professional
VARFISH_ENABLE_HGMD_PRO_LINKOUT = env.bool("VARFISH_ENABLE_HGMD_PRO_LINKOUT", default=False)
# Configure URL prefix for HGMD Professional
VARFISH_HGMD_PRO_LINKOUT_URL_PREFIX = env.bool(
"VARFISH_HGMD_PRO_LINKOUT_URL_PREFIX",
default="https://my.qiagendigitalinsights.com/bbp/view/hgmd/pro",
)

# Varfish: GAGH Beacon
# ------------------------------------------------------------------------------

Expand Down
11 changes: 11 additions & 0 deletions docs_manual/admin_config.rst
Expand Up @@ -208,6 +208,17 @@ You can configure sentry support as follows
A sentry DSN to report to.
See Sentry documentation for details.

-------------------------------
HGMD Professional Documentation
-------------------------------

Users can enable a gene and variant wise link-out to HGMD professional as follows.

``VARFISH_ENABLE_HGMD_PRO_LINKOUT=0``
Enable HGMD Professional link-out.
``VARFISH_HGMD_PRO_LINKOUT_URL_PREFIX=https://my.qiagendigitalinsights.com/bbp/view/hgmd/pro/](https://my.qiagendigitalinsights.com/bbp/view/hgmd/pro``
Configure the URL prefix for HGMD Professional link-outs.

----------------------------------
System and Docker (Compose) Tweaks
----------------------------------
Expand Down
13 changes: 13 additions & 0 deletions variants/templates/variants/filter_result/row.html
Expand Up @@ -7,6 +7,8 @@

{% get_app_setting "variants" "umd_predictor_api_token" user=user as umd_predictor_api_token %}
{% get_django_setting "PROJECTROLES_KIOSK_MODE" as kiosk_mode %}
{% get_django_setting "VARFISH_ENABLE_HGMD_PRO_LINKOUT" as hgmd_pro_enabled %}
{% get_django_setting "VARFISH_HGMD_PRO_LINKOUT_URL_PREFIX" as hgmd_pro_prefix %}
{% get_app_setting "variants" "ga4gh_beacon_network_widget_enabled" user=user as ga4gh_beacon_network_widget_enabled %}
{% ambiguous_frequency_warning entry exac_enabled thousand_genomes_enabled gnomad_exomes_enabled gnomad_genomes_enabled inhouse_enabled as warning %}

Expand Down Expand Up @@ -307,6 +309,11 @@
<a class="dropdown-item" href="https://panelapp.genomicsengland.co.uk/panels/entities/{{ symbol }}" target="_blank">
Gene @PanelApp
</a>
{% if hgmd_pro_enabled %}
<a class="dropdown-item" href="{{ hgmd_pro_prefix }}/gene.php?gene={{ symbol }}" target="_blank">
Gene @HGMD Professional
</a>
{% endif %}
<a class="dropdown-item" href="https://gnomad.broadinstitute.org/gene/{{ entry.ensembl_gene_id }}" target="_blank">
Gene @gnomAD
</a>
Expand Down Expand Up @@ -565,6 +572,12 @@
</span>
{% endif %}

{% if hgmd_pro_enabled %}
<a class="dropdown-item" href="{{ hgmd_pro_prefix }}/gene.php?gene={{ symbol }}" target="_blank">
Gene @HGMD Professional
</a>
{% endif %}

<div class="dropdown-divider"></div>

<a href="javascript:humanSplicingFinder('{{ symbol }}', '{{ entry.hgvs_c }}');"
Expand Down

0 comments on commit 90ec32b

Please sign in to comment.