From fa9c88aed47365301f73bd3cbcb543e6c310b8ae Mon Sep 17 00:00:00 2001 From: Sacha Schutz Date: Thu, 30 Jun 2022 23:06:29 +0200 Subject: [PATCH] Fix #332 --- cutevariant/core/quicksearch.py | 4 +--- cutevariant/gui/plugins/genotypes/widgets.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cutevariant/core/quicksearch.py b/cutevariant/core/quicksearch.py index c6d38127..9f2c278e 100644 --- a/cutevariant/core/quicksearch.py +++ b/cutevariant/core/quicksearch.py @@ -48,13 +48,11 @@ def parse_gene_query(query: str) -> dict: if not query: return dict() - match = re.findall(r"^(\w+)$", query) - + match = re.findall(r"^([\w-]+)$", query) if match: gene_name = match[0] gene_col_name = "gene" - return {"$and": [{f"ann.{gene_col_name}": gene_name}]} else: return dict() diff --git a/cutevariant/gui/plugins/genotypes/widgets.py b/cutevariant/gui/plugins/genotypes/widgets.py index 28c89be1..f1411c17 100644 --- a/cutevariant/gui/plugins/genotypes/widgets.py +++ b/cutevariant/gui/plugins/genotypes/widgets.py @@ -962,7 +962,6 @@ def load_fields(self): self.fields_button.blockSignals(False) def on_refresh(self): - print("DEBUG") # variant id self.current_variant = self.mainwindow.get_state_data("current_variant") if self.current_variant and "id" in self.current_variant: