aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-22 11:42:47 +0300
committerFrederick Muriuki Muriithi2022-11-22 11:42:47 +0300
commit5319940dc0cdf84fce53f0058a3c4315cd3d6652 (patch)
tree961f56e02028c8b87d019eb1ef04803cf51c7ac0 /wqflask
parent5ba0c9fee42e3ca0b8e3cc4df38d1e555194a845 (diff)
parent8beccb5a46f30bb65e7eae294d4cdb17a051a806 (diff)
downloadgenenetwork2-5319940dc0cdf84fce53f0058a3c4315cd3d6652.tar.gz
Merge branch 'bugfix/use-f1-parents' of github.com:Alexanderlacuna/genenetwork2 into Alexanderlacuna-bugfix/use-f1-parents
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 935ab699..c57171c6 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.all_samples_ordered())
+
if not bool(sample_data):
return {}