From 9bab022ec5d1db79fcbf837228ec6c6d9df81cc0 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 5 Oct 2022 17:31:25 +0300 Subject: remove data preprocessing for top n samples --- wqflask/wqflask/correlation/rust_correlation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index df030e72..88133b31 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -98,12 +98,8 @@ def chunk_dataset(dataset, steps, name): for i in range(0, len(dataset), steps): matrix = list(dataset[i:i + steps]) - trait_name = traits_name_dict[matrix[0][0]] - - strains = [trait_name] + [str(value) - for (trait_name, strain, value) in matrix] - results.append(",".join(strains)) - + results.append([traits_name_dict[matrix[0][0]]] + [str(value) + for (trait_name, strain, value) in matrix]) return results -- cgit v1.2.3