aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-19 12:48:04 +0300
committerBonfaceKilz2022-02-09 08:49:56 +0300
commit1f8705001631e00ca719ba49068d0b7bee10f3af (patch)
tree373c2a04c5b38418852f9f78e24d3f16fb0e2776
parentbad7d2c2b5c3f4e8c5fdd350135c8b96b9add8e5 (diff)
downloadgenenetwork2-1f8705001631e00ca719ba49068d0b7bee10f3af.tar.gz
init py file:call gn3 ctl api
-rw-r--r--wqflask/wqflask/ctl/gn3_ctl_analysis.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/wqflask/wqflask/ctl/gn3_ctl_analysis.py b/wqflask/wqflask/ctl/gn3_ctl_analysis.py
new file mode 100644
index 00000000..d44f8bf0
--- /dev/null
+++ b/wqflask/wqflask/ctl/gn3_ctl_analysis.py
@@ -0,0 +1,18 @@
+import requests
+
+from utility.tools import GN3_LOCAL_URL
+
+
+def run_ctl():
+ """function to make an api call
+ to gn3 and run ctl"""
+
+ ctl_api = f"{GN3_LOCAL_URL}/api/wgcna/run_wgcna"
+
+ response = requests.post(ctl_api, json={
+
+ })
+
+ # todo check for errors
+
+ return response.json()