aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorAlexander_Kabui2022-06-22 12:39:29 +0300
committerBonfaceKilz2022-06-29 17:41:16 +0300
commit5c0dceed7c99b435fc0471e763884737e8b4547c (patch)
treeb4298bd28b7d51768d30a48d830d56e8f5101b13 /gn3/computations
parent300867779357f3c2c74d3bbdc6a743ca37136d00 (diff)
downloadgenenetwork3-5c0dceed7c99b435fc0471e763884737e8b4547c.tar.gz
fix issues
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/rust_correlation.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index c2783f1..0539527 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -15,7 +15,8 @@ from gn3.settings import CORRELATION_COMMAND
from gn3.settings import TMPDIR
-def generate_input_files(dataset: list[str], output_dir: str = TMPDIR):
+def generate_input_files(dataset: list[str],
+ output_dir: str = TMPDIR) ->(str, str):
"""function generates outputfiles and inputfiles"""
tmp_dir = f"{output_dir}/correlation"
@@ -65,9 +66,7 @@ def run_correlation(dataset, trait_vals:
command_list = [CORRELATION_COMMAND, json_file, TMPDIR]
- results = subprocess.run(command_list, check=True)
-
- return results
+ return subprocess.run(command_list, check=True)
def parse_correlation_output(result_file: str):