aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-08-12 14:44:05 +0000
committerzsloan2022-12-21 13:04:07 -0600
commit881376674aadd8c68f9c5ca519ce28feb84f89e8 (patch)
tree094e6fc4dab9431d4d1273248f470301e09a5510 /wqflask
parentfe74f5a07bd99cc8f5f80d45075a24d9475c1ef8 (diff)
downloadgenenetwork2-881376674aadd8c68f9c5ca519ce28feb84f89e8.tar.gz
Fix homology source file path
Fix syntax error in multiline if statement
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/interval_analyst/GeneUtil.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/interval_analyst/GeneUtil.py b/wqflask/wqflask/interval_analyst/GeneUtil.py
index a3fe1269..cb97489c 100644
--- a/wqflask/wqflask/interval_analyst/GeneUtil.py
+++ b/wqflask/wqflask/interval_analyst/GeneUtil.py
@@ -2,9 +2,11 @@ import string
from wqflask.database import database_connection
+from utility.tools import flat_files
+
def load_homology(chr_name, start_mb, end_mb, source_file):
homology_list = []
- with open(source_file) as h_file:
+ with open(flat_files("homology/") + source_file) as h_file:
current_chr = 0
for line in h_file:
line_items = line.split()
@@ -19,7 +21,7 @@ def load_homology(chr_name, start_mb, end_mb, source_file):
"query_end": float(line_items[11])/1000000
}
- if str(this_dict["ref_chr"]) == str(chr_name) and
+ 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