aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorPjotr Prins2024-04-03 13:28:49 +0200
committerFrederick Muriuki Muriithi2024-09-12 07:42:01 -0500
commit4dd2ab8da310a34e598553ef951d3233ded9d1ab (patch)
treef7e62eef1886607cf494ea94993436044ff72191 /gn3/api
parent9d221ad285e4d41e0a83af88bef8f221356848ba (diff)
downloadgenenetwork3-4dd2ab8da310a34e598553ef951d3233ded9d1ab.tar.gz
Make sure dir exists before running R/qtl
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/rqtl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py
index dd9078f..68299d4 100644
--- a/gn3/api/rqtl.py
+++ b/gn3/api/rqtl.py
@@ -38,6 +38,10 @@ run the rqtl_wrapper script and return the results as JSON
if kwarg in boolean_kwargs:
rqtl_bool_kwargs.append(kwarg)
+ outdir = os.path.join(get_tmpdir(),"gn3")
+ if not os.path.isdir(outdir):
+ os.mkdir(outdir)
+
rqtl_cmd = generate_rqtl_cmd(
rqtl_wrapper_cmd='scripts/rqtl_wrapper.R',
rqtl_wrapper_kwargs=rqtl_kwargs,