aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-08-12 13:46:26 +0300
committerFrederick Muriuki Muriithi2022-08-12 13:46:26 +0300
commit6db3b2af8fc09999996d3acc09890a06f179c669 (patch)
tree2fc514302e5be7a1c9f7dc8648037b042ed04b2c
parenta0c3b3ce30d508376b2aa9ddfee4252fca6916ac (diff)
downloadgenenetwork3-6db3b2af8fc09999996d3acc09890a06f179c669.tar.gz
Add mandatory/expected fields to parsed data.
-rw-r--r--gn3/computations/rust_correlation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index 7176284..357b3cc 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -79,7 +79,11 @@ def parse_correlation_output(result_file: str,
{
"tissue_corr": corr_coeff,
"tissue_number": num_overlap,
- "tissue_p_val": p_val
+ "tissue_p_val": p_val,
+ # The fields below are mandatory
+ "p_value": p_val,
+ "num_overlap": num_overlap,
+ "corr_coefficient": corr_coeff
})
return tuple(trait_name, {})