From 4dd2ab8da310a34e598553ef951d3233ded9d1ab Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 3 Apr 2024 13:28:49 +0200 Subject: Make sure dir exists before running R/qtl --- gn3/api/rqtl.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gn3') 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, -- cgit v1.2.3