diff options
author | Alexander Kabui | 2022-01-19 12:48:04 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-09 08:49:56 +0300 |
commit | 1f8705001631e00ca719ba49068d0b7bee10f3af (patch) | |
tree | 373c2a04c5b38418852f9f78e24d3f16fb0e2776 /wqflask | |
parent | bad7d2c2b5c3f4e8c5fdd350135c8b96b9add8e5 (diff) | |
download | genenetwork2-1f8705001631e00ca719ba49068d0b7bee10f3af.tar.gz |
init py file:call gn3 ctl api
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/ctl/gn3_ctl_analysis.py | 18 |
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() |