aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/ctl.py2
-rw-r--r--gn3/computations/wgcna.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gn3/computations/ctl.py b/gn3/computations/ctl.py
index f881410..eb34656 100644
--- a/gn3/computations/ctl.py
+++ b/gn3/computations/ctl.py
@@ -13,7 +13,7 @@ def call_ctl_script(data):
"""function to call ctl script"""
data["imgDir"] = TMPDIR
temp_file_name = dump_wgcna_data(data)
- cmd = compose_wgcna_cmd("ctl_analysis.R", temp_file_name)
+ cmd = compose_wgcna_cmd("scripts/ctl_analysis.R", temp_file_name)
cmd_results = run_cmd(cmd)
with open(temp_file_name, "r", encoding="utf-8") as outputfile:
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py
index c985491..01d024b 100644
--- a/gn3/computations/wgcna.py
+++ b/gn3/computations/wgcna.py
@@ -58,7 +58,7 @@ def process_image(image_loc: str) -> bytes:
def compose_wgcna_cmd(rscript_path: str, temp_file_path: str):
"""function to componse wgcna cmd"""
# (todo):issue relative paths to abs paths
- cmd = f"Rscript ./scripts/{rscript_path} {temp_file_path}"
+ cmd = f"Rscript scripts/{rscript_path} {temp_file_path}"
return cmd