diff options
author | zsloan | 2022-10-21 23:31:56 +0000 |
---|---|---|
committer | zsloan | 2022-10-21 23:32:28 +0000 |
commit | 400320ea0063954f027fa918f77f7518b904c6ba (patch) | |
tree | 09464feb90fe594392684b01cdb514ad90ca2932 | |
parent | 6457f7e3516a04e238eeb061db358eea29cd2332 (diff) | |
download | genenetwork2-400320ea0063954f027fa918f77f7518b904c6ba.tar.gz |
Fix logic for determining samplelist in correlations
-rw-r--r-- | wqflask/wqflask/correlation/correlation_gn3_api.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py index 74796383..1af54867 100644 --- a/wqflask/wqflask/correlation/correlation_gn3_api.py +++ b/wqflask/wqflask/correlation/correlation_gn3_api.py @@ -159,17 +159,15 @@ def fetch_sample_data(start_vars, this_trait, this_dataset, target_dataset): corr_samples_group = start_vars["corr_samples_group"] if corr_samples_group == "samples_primary": sample_data = process_samples( - start_vars, this_dataset.group.all_samples_ordered()) + start_vars, this_dataset.group.samplelist) elif corr_samples_group == "samples_other": sample_data = process_samples( start_vars, excluded_samples=this_dataset.group.samplelist) else: - sample_data = process_samples(start_vars) - - sample_data = process_samples( - start_vars, this_dataset.group.all_samples_ordered()) + sample_data = process_samples(start_vars, + this_dataset.group.all_samples_ordered()) target_dataset.get_trait_data(list(sample_data.keys())) this_trait = retrieve_sample_data(this_trait, this_dataset) |