From 1b850e6ba9c276633fa590bbcf0cea8b3348437e Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Thu, 25 Aug 2022 15:55:32 +0200 Subject: [PATCH] Displaying disease gene icon also for SVs (#620). Related-Issue: #620 Closes: #620 Projected-Results-Impact: none --- HISTORY.rst | 2 ++ svs/queries.py | 7 +++++++ svs/templates/svs/filter_result/row_sv.html | 5 ++++- svs/views.py | 1 - variants/queries.py | 7 ++++++- variants/templates/variants/second_hit.html | 14 +++++++------- 6 files changed, 26 insertions(+), 10 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 061af66bc..bd685daee 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -45,6 +45,7 @@ End-User Summary - Adding section presets for SV filtration (#616). - Adjusting SV filtration presets (#616). - Fix bug with thousand genomes frequencies in SV filtration (#619). +- Displaying disease gene icon also for SVs (#620). Full Change List ================ @@ -85,6 +86,7 @@ Full Change List - Adding section presets for SV filtration (#616). - Adjusting SV filtration presets (#616). - Fix bug with thousand genomes frequencies in SV filtration (#619). +- Displaying disease gene icon also for SVs (#620). ------ v1.2.0 diff --git a/svs/queries.py b/svs/queries.py index a96629182..a05fd5f4c 100644 --- a/svs/queries.py +++ b/svs/queries.py @@ -41,6 +41,7 @@ ExtendQueryPartsBase, ExtendQueryPartsGenotypeDefaultBase, ExtendQueryPartsCaseJoinAndFilter as _ExtendQueryPartsCaseJoinAndFilter, + ExtendQueryPartsDiseaseGeneJoin as _ExtendQueryPartsDiseaseGeneJoin, ) #: Logger to use in this module. @@ -682,6 +683,11 @@ class EnsemblRegulatoryFeatureTypes(enum.Enum): TF_BINDING_SITE = "TF_binding_site" +class ExtendQueryPartsDiseaseGeneJoin(_ExtendQueryPartsDiseaseGeneJoin): + + gene_id_model = StructuralVariantGeneAnnotation + + class ExtendQueryPartsEnsemblRegulatoryJoinAndFilter(ExtendQueryPartsBase): """Extend ``QueryParts`` with information for ENSEMBL regulatory region overlap.""" @@ -951,6 +957,7 @@ def extend_selectable(self, query_parts): ExtendQueryPartsVistaEnhancerJoinAndFilter, ExtendQueryPartsRegMapJoinAndFilter, ExtendQueryPartsHgncJoin, + ExtendQueryPartsDiseaseGeneJoin, ] diff --git a/svs/templates/svs/filter_result/row_sv.html b/svs/templates/svs/filter_result/row_sv.html index b0216a011..49ea9b3f5 100644 --- a/svs/templates/svs/filter_result/row_sv.html +++ b/svs/templates/svs/filter_result/row_sv.html @@ -48,12 +48,15 @@ ∅ genes {% else %}
-