aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-20 09:38:17 +0300
committerFrederick Muriuki Muriithi2021-12-24 14:36:14 +0300
commit0508fc422c033cfff8bbea118f85282212d236e4 (patch)
tree6be272a2a644cc216bc47952b09504e3249a5a52
parentac8528c5847f4a517c16b5283c06d3caeae8ef5e (diff)
downloadgenenetwork3-0508fc422c033cfff8bbea118f85282212d236e4.tar.gz
Return the correlation method used
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * Return the correlation method used
-rw-r--r--gn3/computations/partial_correlations.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 9fb17f7..dbcbe29 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -770,5 +770,6 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911]
trait_for_output(trait) for trait in cntrl_traits),
"correlations": tuple(
trait_for_output(trait) for trait in trait_list),
- "dataset_type": target_dataset["type"]
+ "dataset_type": target_dataset["type"],
+ "method": "spearman" if "spearman" in method.lower() else "pearson"
}}