diff options
author | Alexander Kabui | 2021-10-14 10:50:18 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-01-22 09:23:14 +0300 |
commit | 64598509e7e4c3d06a2446c564f383d0d275c090 (patch) | |
tree | 0d012eac72ecd9255de83bf06c0eb7057ff85e45 /gn3/computations/ctl.py | |
parent | 8da922d6835097c53d6d434cf6661027b15399a8 (diff) | |
download | genenetwork3-64598509e7e4c3d06a2446c564f383d0d275c090.tar.gz |
init file to call ctl script
Diffstat (limited to 'gn3/computations/ctl.py')
-rw-r--r-- | gn3/computations/ctl.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gn3/computations/ctl.py b/gn3/computations/ctl.py new file mode 100644 index 0000000..c4955a0 --- /dev/null +++ b/gn3/computations/ctl.py @@ -0,0 +1,20 @@ +"""module contains code to process ctl analysis data""" +from gn3.commands import run_cmd + +from gn3.computations.wgcna import dump_wgcna_data +from gn3.computations.wgcna import compose_wgcna_cmd + + +def call_ctl_script(data): + """function to call ctl script""" + + temp_file_name = dump_wgcna_data(data) + cmd = compose_wgcna_cmd("ctl_analysis.R", temp_file_name) + + try: + cmd_results = run_cmd(cmd) + print(cmd_results) + except Exception as e: + raise e + + return "hello" |