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