From f5228277166c89dc21d61676cf9d7ecdd86a1c1b Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 12 Aug 2022 15:06:10 +0000 Subject: Fix logic for filtering homology data --- wqflask/wqflask/interval_analyst/GeneUtil.py | 6 ++---- 1 file 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 -- cgit v1.2.3