aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-14 04:35:44 +0300
committerFrederick Muriuki Muriithi2021-12-14 04:35:44 +0300
commitf81950baa398212861200dbc088b80dbdcc4fead (patch)
tree8a79b9cce437c53eab69a58fc83939aca42fc891 /gn3
parent4d95424e265d1838ec647206f269ac862bd147ea (diff)
downloadgenenetwork3-f81950baa398212861200dbc088b80dbdcc4fead.tar.gz
Fix dataset: use target dataset not primary
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * Use the target dataset to load the target traits, not the primary trait's dataset, since they might differ.
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/partial_correlations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 7a8acd7..87d0201 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -690,7 +690,7 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911]
{
**retrieve_trait_info(
threshold,
- f"{primary_trait['db']['dataset_name']}::{item[0]}",
+ f"{target_dataset['dataset_name']}::{item[0]}",
conn),
"noverlap": item[1],
"partial_corr": item[2],