aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/wgcna.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-09-16 09:32:42 +0300
committerAlexander Kabui2021-09-16 09:32:42 +0300
commit8854e3070f32bed95cb489eb36e7f258c02ec46e (patch)
tree360192f942d43d9c13a6a4bac62a69d8e267b3d0 /gn3/api/wgcna.py
parent38cbc95f216548d4a2f46b8e25cd328ff8c52d62 (diff)
downloadgenenetwork3-8854e3070f32bed95cb489eb36e7f258c02ec46e.tar.gz
add initial endpoint for wgcna
Diffstat (limited to 'gn3/api/wgcna.py')
-rw-r--r--gn3/api/wgcna.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gn3/api/wgcna.py b/gn3/api/wgcna.py
new file mode 100644
index 0000000..a3bacdd
--- /dev/null
+++ b/gn3/api/wgcna.py
@@ -0,0 +1,13 @@
+"""endpoint to run wgcna analysis"""
+from flask import Blueprint
+from flask import request
+
+wgcna = Blueprint("wgcna", __name__)
+
+
+@wgcna.route("/run_wgcna", methods=["POST"])
+def run_wgcna():
+
+ _wgcna_data = request.json
+
+ return "success", 200