From 1f8705001631e00ca719ba49068d0b7bee10f3af Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Wed, 19 Jan 2022 12:48:04 +0300 Subject: init py file:call gn3 ctl api --- wqflask/wqflask/ctl/gn3_ctl_analysis.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 wqflask/wqflask/ctl/gn3_ctl_analysis.py 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() -- cgit v1.2.3