aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-09-22 00:49:22 +0300
committerAlexander Kabui2021-09-22 00:49:22 +0300
commit6f7c60e6c438ada9a3b9032c8e4509351384e04f (patch)
tree877510e5d7a65dbbe3664a3c9f9632b8a5a7f432
parent580778386f054706086d7ab3d49f2c4f91f110e0 (diff)
downloadgenenetwork3-6f7c60e6c438ada9a3b9032c8e4509351384e04f.tar.gz
jsonify results
-rw-r--r--gn3/api/wgcna.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/api/wgcna.py b/gn3/api/wgcna.py
index 5d49493..89784c4 100644
--- a/gn3/api/wgcna.py
+++ b/gn3/api/wgcna.py
@@ -2,6 +2,7 @@
from flask import Blueprint
from flask import request
from flask import current_app
+from flask import jsonify
from gn3.computations.wgcna import call_wgcna_script
@@ -18,4 +19,4 @@ def run_wgcna():
results = call_wgcna_script(wgcna_script, wgcna_data)
- return results, 200
+ return jsonify(results), 200