diff options
| author | Munyoki Kilyungi | 2025-02-24 18:01:17 +0300 |
|---|---|---|
| committer | Munyoki Kilyungi | 2025-02-24 18:01:17 +0300 |
| commit | 3a651aad0b350b0e61f3e3d99613454b9b8e0a99 (patch) | |
| tree | 1a9850a042ce610702235deeee480a0c72b009cc | |
| parent | 297430649e2d916fb44c5dd912a2c44973c96c48 (diff) | |
| download | genenetwork3-3a651aad0b350b0e61f3e3d99613454b9b8e0a99.tar.gz | |
Fetch rscript from os env if it isn't set in the app's config.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| -rw-r--r-- | gn3/computations/rqtl2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/rqtl2.py b/gn3/computations/rqtl2.py index 8f1e928..a06c929 100644 --- a/gn3/computations/rqtl2.py +++ b/gn3/computations/rqtl2.py @@ -71,7 +71,7 @@ def compose_rqtl2_cmd(rqtl_path, input_file, "threshold": data.get("threshold", 1), "cores": config.get('MULTIPROCESSOR_PROCS', 1) } - rscript_path = config.get("RSCRIPT", "Rscript") + rscript_path = config.get("RSCRIPT", os.environ.get("RSCRIPT", "Rscript")) return f"{rscript_path} { rqtl_path } " + " ".join( [f"--{key} {val}" for key, val in params.items()]) |
