aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-10-21 23:31:56 +0000
committerzsloan2022-10-21 23:32:28 +0000
commit400320ea0063954f027fa918f77f7518b904c6ba (patch)
tree09464feb90fe594392684b01cdb514ad90ca2932 /wqflask
parent6457f7e3516a04e238eeb061db358eea29cd2332 (diff)
downloadgenenetwork2-400320ea0063954f027fa918f77f7518b904c6ba.tar.gz
Fix logic for determining samplelist in correlations
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/correlation_gn3_api.py8
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)