aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/wgcna.py
diff options
context:
space:
mode:
authorAlexander Kabui2022-03-22 16:20:00 +0300
committerAlexander Kabui2022-03-22 16:20:00 +0300
commitbb622cc5947e6ea896d3b94a1d2c4e0cbd1b26f9 (patch)
treec3e2a678f5e29ccd2b1dc3bb9f055eb02f8bb492 /gn3/computations/wgcna.py
parent7b2901817a1aabd947483f87b5a2a2d33618de7e (diff)
downloadgenenetwork3-bb622cc5947e6ea896d3b94a1d2c4e0cbd1b26f9.tar.gz
rename compose_wgcna to general func name
Diffstat (limited to 'gn3/computations/wgcna.py')
-rw-r--r--gn3/computations/wgcna.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py
index c985491..01aaedb 100644
--- a/gn3/computations/wgcna.py
+++ b/gn3/computations/wgcna.py
@@ -55,17 +55,17 @@ def process_image(image_loc: str) -> bytes:
return b""
-def compose_wgcna_cmd(rscript_path: str, temp_file_path: str):
+def compose_rscript_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
def call_wgcna_script(rscript_path: str, request_data: dict):
"""function to call wgcna script"""
generated_file = dump_wgcna_data(request_data)
- cmd = compose_wgcna_cmd(rscript_path, generated_file)
+ cmd = compose_rscript_cmd(rscript_path, generated_file)
# stream_cmd_output(request_data, cmd) disable streaming of data