File size: 715 Bytes
33bad77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
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