aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-17 16:58:32 +0300
committerFrederick Muriuki Muriithi2021-12-17 16:58:32 +0300
commit65aeebd3bef1c3fe563226b1dd8222783ee405bf (patch)
tree6b4bcc68c3da950fefc9d2cdaf1cfbe07ca51053
parenta9c760f1125423efd5b5a8e9f85ea84d23f10a11 (diff)
downloadgenenetwork3-65aeebd3bef1c3fe563226b1dd8222783ee405bf.tar.gz
Add "success" status to final computation results
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
-rw-r--r--gn3/computations/partial_correlations.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 3a229ea..13c411a 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -715,7 +715,9 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911]
sorted_correlations[:min(criteria, len(all_correlations))]))
return {
+ "status": "success",
+ "results": {
"primary_trait": primary_trait,
"control_traits": cntrl_traits,
"correlations": trait_list
- }
+ }}