aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorzsloan2024-08-01 19:01:32 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commitcd204d14791c46359fdb55a0888b9ba97259bcb4 (patch)
tree76d34c34c80cf8e278ee9304a827752ebd03ae29 /gn2/wqflask
parent9d43be67ad7831b137d6435af6ff7191dfe6982a (diff)
downloadgenenetwork2-cd204d14791c46359fdb55a0888b9ba97259bcb4.tar.gz
Fix correlation bug caused by a result trait not having a location
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/correlation/show_corr_results.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn2/wqflask/correlation/show_corr_results.py b/gn2/wqflask/correlation/show_corr_results.py
index 68e424b4..be48abc2 100644
--- a/gn2/wqflask/correlation/show_corr_results.py
+++ b/gn2/wqflask/correlation/show_corr_results.py
@@ -90,6 +90,9 @@ def apply_filters(trait, target_trait, target_dataset, **filters):
def __location_filter__(location_type, location_chr,
min_location_mb, max_location_mb):
+ if not target_trait['mb'] or not target_trait['chr']:
+ return True
+
if target_dataset["type"] in ["ProbeSet", "Geno"] and location_type == "gene":
return (
((location_chr!=None) and (target_trait["chr"]!=location_chr))