aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-07-17 10:53:50 -0500
committerzsloan2019-07-17 10:53:50 -0500
commit375c87faac2e1eeee064263aafb1e20480643eb7 (patch)
treea4da96e84c8d8b1773cd4ff957429abf96446913
parent477a259b752537b615e286e4cae48234b9cd782b (diff)
downloadgenenetwork2-375c87faac2e1eeee064263aafb1e20480643eb7.tar.gz
Error page should now correctly appear when doing LOCO mapping with GEMMA (if there's no appropriate genotype file)
-rw-r--r--wqflask/wqflask/marker_regression/gemma_mapping.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/wqflask/marker_regression/gemma_mapping.py b/wqflask/wqflask/marker_regression/gemma_mapping.py
index 4e3c203d..895d4ac6 100644
--- a/wqflask/wqflask/marker_regression/gemma_mapping.py
+++ b/wqflask/wqflask/marker_regression/gemma_mapping.py
@@ -221,7 +221,11 @@ def parse_loco_output(this_dataset, gwa_output_filename):
marker_obs = []
previous_chr = 0
+ no_results = False
for this_file in output_filelist:
+ if not os.path.isfile(this_file):
+ no_results = True
+ break
with open(this_file) as output_file:
for line in output_file:
if line.startswith("chr\t"):