aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-08-12 15:06:10 +0000
committerzsloan2022-12-21 13:04:07 -0600
commitf5228277166c89dc21d61676cf9d7ecdd86a1c1b (patch)
treeee246b8f3d2ff69d29cbab2fdcf904c6d650f6b6
parent52bbe8b56c0d8d2cda2b084e1ad936d80c40e431 (diff)
downloadgenenetwork2-f5228277166c89dc21d61676cf9d7ecdd86a1c1b.tar.gz
Fix logic for filtering homology data
-rw-r--r--wqflask/wqflask/interval_analyst/GeneUtil.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/wqflask/interval_analyst/GeneUtil.py b/wqflask/wqflask/interval_analyst/GeneUtil.py
index cb97489c..5e3e9c9d 100644
--- a/wqflask/wqflask/interval_analyst/GeneUtil.py
+++ b/wqflask/wqflask/interval_analyst/GeneUtil.py
@@ -22,10 +22,8 @@ def load_homology(chr_name, start_mb, end_mb, source_file):
}
if str(this_dict["ref_chr"]) == str(chr_name) and \
- ((this_dict["ref_start"]>= start_mb and this_dict["ref_end"] <= end_mb) or
- (this_dict["ref_start"] < start_mb and this_dict["ref_end"] <= end_mb) or
- (this_dict["ref_start"] >= start_mb and this_dict["ref_end"] > end_mb) or
- (this_dict["ref_start"] < start_mb and this_dict["ref_end"] > end_mb)):
+ this_dict["ref_start"] < end_mb and \
+ this_dict["ref_end"] > start_mb:
homology_list.append(this_dict)
return homology_list