blob: d0cf5f81f614bdc1f19a89cb7c51bda8add08ef5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
"""Endpoints for running the gemma cmd"""
from flask import Blueprint
from flask import jsonify
gemma = Blueprint("gemma", __name__)
@gemma.route("/")
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
|