aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2022-10-22 17:07:32 +0300
committerGitHub2022-10-22 17:07:32 +0300
commitc557b048f017b40965da129b27cab86600713200 (patch)
tree5f0ee7fb24461e0b5198e908e2321ac0f32c7af8 /wqflask
parent400320ea0063954f027fa918f77f7518b904c6ba (diff)
parent302d94f4557322a75ea002a8c4bbaf8509bff630 (diff)
downloadgenenetwork2-c557b048f017b40965da129b27cab86600713200.tar.gz
Merge pull request #739 from Alexanderlacuna/fix/samplelist-parsing
fix issue;parsing sample data
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index b2a0e3a0..4b7eedc0 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -231,10 +231,12 @@ def __compute_sample_corr__(
target_trait_info: tuple):
"""Compute the sample correlations"""
(this_dataset, this_trait, target_dataset, sample_data) = target_trait_info
- all_samples = json.loads(start_vars["sample_vals"])
+
sample_data = get_sample_corr_data(
- sample_type=start_vars["corr_samples_group"], all_samples=all_samples,
- dataset_samples=this_dataset.group.all_samples_ordered())
+ sample_type=start_vars["corr_samples_group"],
+ sample_data= json.loads(start_vars["sample_vals"]),
+ all_samples=this_dataset.group.all_samples_ordered(),
+ dataset_samples=this_dataset.group.samplelist)
if not bool(sample_data):
return {}