about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-03-11 14:39:25 -0500
committerFrederick Muriuki Muriithi2026-03-11 14:39:25 -0500
commitc4c2ed8ba205be09c6040a07444b0d892cae8a31 (patch)
tree5920787a56bfaf4e79c339ecf99328fd486d8242
parent90809ed28ac6d07f20f533f8a0108d3557cc1bc4 (diff)
downloadgn-uploader-c4c2ed8ba205be09c6040a07444b0d892cae8a31.tar.gz
Check exit code of the Rust QTLReaper script. HEAD main
-rw-r--r--scripts/run_qtlreaper.py5
1 files changed, 5 insertions, 0 deletions
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: