aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexanderKabui2022-11-07 18:10:26 +0300
committerAlexanderKabui2022-11-07 18:10:26 +0300
commit8beccb5a46f30bb65e7eae294d4cdb17a051a806 (patch)
treeb007162b58655e4e89b7da40424c59070a4cca2b /wqflask
parentc1ea9ec4854ed5d133c5843dd8369db6b09be10c (diff)
downloadgenenetwork2-8beccb5a46f30bb65e7eae294d4cdb17a051a806.tar.gz
include f1 parents for correlation
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index a2f842bc..3245d037 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -234,11 +234,18 @@ def __compute_sample_corr__(
"""Compute the sample correlations"""
(this_dataset, this_trait, target_dataset, sample_data) = target_trait_info
+ if this_dataset.group.f1list !=None:
+ this_dataset.group.samplelist+= this_dataset.group.f1list
+
+ if this_dataset.group.parlist!= None:
+ this_dataset.group.samplelist+= this_dataset.group.parlist
+
sample_data = get_sample_corr_data(
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 {}