aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-17 00:38:18 +0300
committerBonfaceKilz2021-02-24 14:20:29 +0300
commitded3da3a48c1d55643a5b49a165334340b02cf6d (patch)
tree3cedb468cc4a632e3b3846599f65034c0c3005e4
parent3a6fc87d180963e27bb0b0e78aea5415a00fdd33 (diff)
downloadgenenetwork3-ded3da3a48c1d55643a5b49a165334340b02cf6d.tar.gz
Add stubbed gemma endpoints
-rw-r--r--gn3/api/gemma.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/gn3/api/gemma.py b/gn3/api/gemma.py
index 30d486f..d0cf5f8 100644
--- a/gn3/api/gemma.py
+++ b/gn3/api/gemma.py
@@ -9,3 +9,28 @@ gemma = Blueprint("gemma", __name__)
def index() -> str:
"""Test endpoint"""
return jsonify(result="hello world")
+
+
+@gemma.route("/version")
+def get_version():
+ pass
+
+
+@gemma.route("/k-compute/<token>", methods=["POST"])
+def run_k_compute(token) -> str:
+ pass
+
+
+@gemma.route("/lmm/gwa/<token>/<k_file_name>", methods=["POST"])
+def run_gwa(token, k_file_name) -> str:
+ pass
+
+
+@gemma.route("/pheno-permutation/<token>", methods=["POST"])
+def run_pheno_permutation(token) -> str:
+ pass
+
+
+@gemma.route("/lmm2/loco/<token>", methods=["POST"])
+def run_gemma_with_loco(token) -> str:
+ pass