aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorAlexander_Kabui2022-08-10 07:42:01 +0300
committerFrederick Muriuki Muriithi2022-08-10 09:23:25 +0300
commitfecd924c217463cbb79f1627e7f839d449a47719 (patch)
tree924207f400457a0eb754910e06efec7919dfa38d /gn3
parentbfad75864d50d0cbe2b63a6b7a7b866215b61022 (diff)
downloadgenenetwork3-fecd924c217463cbb79f1627e7f839d449a47719.tar.gz
remove unnecessary parsing of floats
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/rust_correlation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py
index d8d2cf0..6d37726 100644
--- a/gn3/computations/rust_correlation.py
+++ b/gn3/computations/rust_correlation.py
@@ -89,6 +89,7 @@ def parse_correlation_output(result_file: str,
return []
+
def get_samples(all_samples: dict[str, str],
base_samples: list[str],
excluded: list[str]):
@@ -141,8 +142,7 @@ def parse_tissue_corr_data(symbol_name: str,
results = None
if symbol_name and symbol_name.lower() in symbol_dict:
- x_vals = ",".join([str(val)
- for val in symbol_dict[symbol_name.lower()]])
+ x_vals = [float(val) for val in symbol_dict[symbol_name.lower()]]
data = []