aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()