diff options
author | Alexander Kabui | 2022-10-22 17:07:32 +0300 |
---|---|---|
committer | GitHub | 2022-10-22 17:07:32 +0300 |
commit | c557b048f017b40965da129b27cab86600713200 (patch) | |
tree | 5f0ee7fb24461e0b5198e908e2321ac0f32c7af8 /wqflask | |
parent | 400320ea0063954f027fa918f77f7518b904c6ba (diff) | |
parent | 302d94f4557322a75ea002a8c4bbaf8509bff630 (diff) | |
download | genenetwork2-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.py | 8 |
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 {} |