about summary refs log tree commit diff
diff options
context:
space:
mode:
-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: