From c4c2ed8ba205be09c6040a07444b0d892cae8a31 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 11 Mar 2026 14:39:25 -0500 Subject: Check exit code of the Rust QTLReaper script. --- scripts/run_qtlreaper.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/run_qtlreaper.py b/scripts/run_qtlreaper.py index d9cadea..ab19da0 100644 --- a/scripts/run_qtlreaper.py +++ b/scripts/run_qtlreaper.py @@ -174,6 +174,11 @@ def dispatch(args: Namespace) -> int: # short-circuits to delete file if exists _traitsfile.exists() and _traitsfile.unlink() _qtlreaper_main_output.exists() and _qtlreaper_main_output.unlink() + + if _qtlreaper.returncode != 0: + return _qtlreaper.returncode + + save_qtl_values_to_db(conn, results) logger.info("Successfully computed p values for %s traits.", len(_traitsdata)) return 0 except FileNotFoundError as fnf: -- cgit 1.4.1