aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/rust_correlation.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-08-10 09:51:39 +0300
committerFrederick Muriuki Muriithi2022-08-10 09:51:39 +0300
commitc79b0a0e2bd4d174cfa35645436bd0bec04c1c4c (patch)
treed6402b7100f9bf304d525b3ef401b02e45b4249c /gn3/computations/rust_correlation.py
parent95c06b76b445b5138500a1a019274405cd8eeec5 (diff)
downloadgenenetwork3-c79b0a0e2bd4d174cfa35645436bd0bec04c1c4c.tar.gz
code refactoring
Diffstat (limited to 'gn3/computations/rust_correlation.py')
-rw-r--r--gn3/computations/rust_correlation.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index 246c059..23fdf42 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -67,13 +67,11 @@ def parse_correlation_output(result_file: str,
def __parse_line__(line):
(trait_name, corr_coeff, p_val, num_overlap) = line.rstrip().split(",")
if corr_type == "sample":
- return (
- trait_name,
- {
+ return (trait_name, {
"num_overlap": num_overlap,
"corr_coefficient": corr_coeff,
"p_value": p_val
- })
+ })
if corr_type == "tissue":
return (
@@ -93,7 +91,6 @@ def parse_correlation_output(result_file: str,
return []
-
def get_samples(all_samples: dict[str, str],
base_samples: list[str],
excluded: list[str]):