webgenie_api / app /api /docs.py
Ukandu's picture
Upload 51 files
33bad77 verified
Raw History Blame Contribute Delete
1.4 kB
from fastapi import APIRouter
from app.registry.catalog import DATASETS, ALGORITHMS
router = APIRouter(prefix="/docs", tags=["Documentation"])
@router.get("/", summary="System overview and API guide")
def system_docs():
return {
"name": "WebGenie BEELINE Platform",
"description": (
"A web-based execution, benchmarking, and comparison platform "
"for BEELINE GRN inference algorithms."
),
"concepts": {
"datasets": "scRNA-seq benchmark datasets hosted on Hugging Face",
"algorithms": "BEELINE GRN inference algorithms executed via Docker",
"runs": "Asynchronous benchmark executions",
"metrics": ["AUROC", "AUPRC", "F1"]
},
"canonical_dataset_ids": "Hugging Face dataset IDs (not UI aliases)",
"example_dataset_id": DATASETS[0]["id"],
"workflow": [
"GET /datasets",
"GET /algorithms",
"POST /runs",
"GET /runs/{run_id}",
"GET /runs/{run_id}/metrics"
],
"example_run_payload": {
"dataset_id": DATASETS[0]["id"],
"algorithms": ["grnbeeline/genie3"],
"params": {
"num_trees": 100
}
},
"frontend": "https://github.com/ukanduchimeremezejames/WebGenieDark"
}