From 375c87faac2e1eeee064263aafb1e20480643eb7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 17 Jul 2019 10:53:50 -0500 Subject: Error page should now correctly appear when doing LOCO mapping with GEMMA (if there's no appropriate genotype file) --- wqflask/wqflask/marker_regression/gemma_mapping.py | 4 ++++ 1 file changed, 4 insertions(+) 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"): -- cgit v1.2.3