From 6db3b2af8fc09999996d3acc09890a06f179c669 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 12 Aug 2022 13:46:26 +0300 Subject: Add mandatory/expected fields to parsed data. --- gn3/computations/rust_correlation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, {}) -- cgit v1.2.3