aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-18 08:09:04 +0300
committerFrederick Muriuki Muriithi2021-12-24 14:36:14 +0300
commit5abe0158daed9428484925b95bb4a8b2251adea2 (patch)
tree2c6e01f4d55960255fb0654d1c8696e7723726a4 /gn3/computations
parented8ee3077211cc227089f87929a70ac8b7c4593f (diff)
downloadgenenetwork3-5abe0158daed9428484925b95bb4a8b2251adea2.tar.gz
Add dataset type to the results
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * The dataset type is relevant for the display of the data, therefore, this commit presents the dataset type as part of the results.
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/partial_correlations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 13c411a..1c02533 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -717,7 +717,8 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911]
return {
"status": "success",
"results": {
- "primary_trait": primary_trait,
- "control_traits": cntrl_traits,
- "correlations": trait_list
+ "primary_trait": primary_trait,
+ "control_traits": cntrl_traits,
+ "correlations": trait_list,
+ "dataset_type": target_dataset["type"]
}}