about summary refs log tree commit diff
path: root/gn2/wqflask/correlation
diff options
context:
space:
mode:
authorAlexander Kabui2024-08-30 16:47:55 +0300
committerGitHub2024-08-30 16:47:55 +0300
commited20621c23a9a41152f3d6a48334f2a31c018033 (patch)
tree5e2182b99f5f05e2f667dfce1b762921c4ec62dc /gn2/wqflask/correlation
parent9a345d8abf2f0045b2c47bfcf1ae5860273452be (diff)
parent6db49002d4d2e69fcf4fdd6be6aceeea7b95664f (diff)
downloadgenenetwork2-ed20621c23a9a41152f3d6a48334f2a31c018033.tar.gz
Merge pull request #861 from genenetwork/feature/gnqa-search-2
Feature/gnqa search 2
Diffstat (limited to 'gn2/wqflask/correlation')
-rw-r--r--gn2/wqflask/correlation/show_corr_results.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn2/wqflask/correlation/show_corr_results.py b/gn2/wqflask/correlation/show_corr_results.py
index c8625222..1abf1a28 100644
--- a/gn2/wqflask/correlation/show_corr_results.py
+++ b/gn2/wqflask/correlation/show_corr_results.py
@@ -91,6 +91,8 @@ def apply_filters(trait, target_trait, target_dataset, **filters):
                             min_location_mb, max_location_mb):
 
         if target_dataset["type"] in ["ProbeSet", "Geno"] and location_type == "gene":
+            if not target_trait['mb'] or not target_trait['chr']:
+                return True
             return (
                 ((location_chr!=None) and (target_trait["chr"]!=location_chr))
                      or
@@ -154,7 +156,7 @@ def get_user_filters(start_vars):
 
     if all(keys in start_vars for keys in ["loc_chr",
                                            "min_loc_mb",
-                                           "max_location_mb"]):
+                                           "max_loc_mb"]):
 
         location_chr = get_string(start_vars, "loc_chr")
         min_location_mb = get_int(start_vars, "min_loc_mb")