aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander_Kabui2022-10-05 17:31:25 +0300
committerAlexander_Kabui2022-10-05 17:31:25 +0300
commit9bab022ec5d1db79fcbf837228ec6c6d9df81cc0 (patch)
tree6819a6bb709a0d31e0a59a7efc618dc293cfc5fc /wqflask
parent163f43a1eebfea7b97f7b30e9e2a036aeebfe658 (diff)
downloadgenenetwork2-9bab022ec5d1db79fcbf837228ec6c6d9df81cc0.tar.gz
remove data preprocessing for top n samples
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py8
1 files 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