diff options
author | Frederick Muriuki Muriithi | 2021-12-14 04:35:44 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-12-14 04:35:44 +0300 |
commit | f81950baa398212861200dbc088b80dbdcc4fead (patch) | |
tree | 8a79b9cce437c53eab69a58fc83939aca42fc891 | |
parent | 4d95424e265d1838ec647206f269ac862bd147ea (diff) | |
download | genenetwork3-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.
-rw-r--r-- | gn3/computations/partial_correlations.py | 2 |
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], |