webgenie_api / app /api /algorithms.py
Ukandu's picture
Upload 51 files
33bad77 verified
Raw History Blame Contribute Delete
715 Bytes
from fastapi import APIRouter
from app.registry.catalog import ALGORITHMS
router = APIRouter(prefix="/algorithms", tags=["Algorithms"])
BEELINE_ALGORITHMS = [
"grnboost2",
"genie3",
"clr",
"aracne",
"mrnet",
"pearson",
"spearman",
"pidc",
"inferelator",
"tigress",
"pcc",
"glasso"
]
@router.get("/")
def list_algorithms():
"""
List all BEELINE Docker algorithms
"""
return [
{
"name": alg,
"docker_image": f"grnbeeline/{alg}"
}
for alg in BEELINE_ALGORITHMS
]
@router.get("/", summary="List BEELINE algorithms")
def list_algorithms():
return ALGORITHMS