ci / api (push) Failing after 10s
ci / terraform (push) Failing after 11s
ci / web (push) Failing after 35s
ci / pipeline (push) Failing after 2m29s
ci / images (api) (push) Skipped
ci / images (ml) (push) Skipped
ci / images (pipeline) (push) Skipped
ci / images (web) (push) Skipped
End-to-end variant interpretation platform for rare genetic disease research: SvelteKit UI, FastAPI + PostgreSQL API, Nextflow/Ensembl VEP pipeline, LightGBM pathogenicity scoring with MLflow, K8s/ArgoCD/GCP infrastructure. Public test data only; no clinical claims.
17 lines
487 B
Python
17 lines
487 B
Python
import uuid
|
|
|
|
from fastapi import APIRouter, Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.db import get_session
|
|
from app.services.scoring import score_job
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.post("/score/{job_id}")
|
|
async def score(job_id: uuid.UUID, session: AsyncSession = Depends(get_session)) -> dict:
|
|
"""Load the registered MLflow model and score every variant of a job."""
|
|
n = await score_job(job_id, session)
|
|
return {"job_id": str(job_id), "scored": n}
|