aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-10-03 09:41:52 +0300
committerFrederick Muriuki Muriithi2022-10-03 09:47:37 +0300
commitfe1b8be86b65346724f8f78ab9e5d897e0c480b0 (patch)
treec9304461497dafffa75e480bf4e7f81953ac46da
parentff34aee0f39c2e91db243461d7d67405e7aea0e3 (diff)
downloadgenenetwork3-fe1b8be86b65346724f8f78ab9e5d897e0c480b0.tar.gz
Bug: Do not process data for output too early
* gn3/computations/rust_correlation.py: (parse_tissue_corr_data): The function was parsing data from a file, and then converting the parsed values into a comma-separated string for output, despite the fact that the data parsed is not output in this specific function. This is a really bad idea, and leads to errors showing up down the line, far removed from the cause.
-rw-r--r--gn3/computations/rust_correlation.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index 8c3a0d3..03af997 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -157,9 +157,7 @@ def parse_tissue_corr_data(symbol_name: str,
corr_vals = dataset_vals.get(symbol.lower())
if corr_vals:
- corr_vals = [str(trait)] + corr_vals
-
- data.append(",".join([str(x) for x in corr_vals]))
+ data.append([str(trait)] + corr_vals)
except AttributeError:
pass