Overview
The Metabolic Scoring API exposes literature-aligned scenario presets and custom cascade runs so educators and researchers can inspect stage outputs, proxy contributions, and phenotype verdicts without opaque black-box scores. Clients post JSON inputs (or select a named preset) and receive structured cascade artefacts suitable for teaching and hypothesis generation.
- Scenario scoring — run a preset or custom input vector through the full cascade
- Concept attribution — inspect which signaling / flux concepts drive the phenotype
- Monte Carlo sensitivity — perturb weights and inputs to map score stability
Cascade stages
The framework is intentionally staged so every intermediate quantity remains inspectable:
- Signaling — oncogenic pathway activity axes from adjustable literature-aligned inputs
- Oxygen / microenvironment — hypoxia and nutrient availability modulators
- Metabolic flux — glycolysis, OXPHOS, lipid, and related flux composites
- Hallmarks — proliferation, angiogenesis, invasion, immune, and metabolism maps
- Phenotype score — aggregated verdict with concept attribution and therapy-node ranking
Authentication
Requests accept an x-api-key header. The public research console uses a prototype key suitable for evaluation traffic. Production deployments should rotate keys via environment configuration.
x-api-key: <your-api-key> Content-Type: application/json Accept: application/json
Same-origin proxy
Browser clients should call the Æ Hive proxy at /api/metabolic-scoring/*. The route forwards to the Metabolic Scoring backend and injects the demo key when none is supplied.
GET /api/metabolic-scoring/health POST /api/metabolic-scoring/scenario POST /api/metabolic-scoring/sensitivity
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /health | Service readiness / cascade model heartbeat |
POST | /scenario | Run a named preset or custom cascade scoring request |
POST | /sensitivity | Monte Carlo weight / input perturbation sweeps |
Scenario scoring
POST /scenario accepts either a preset identifier (literature-aligned teaching cases) or a custom inputs object spanning signaling, oxygen, and flux axes. Responses include stage vectors, hallmark composites, phenotype score, concept attribution, and optional therapy-node ranking — always labelled as hypotheses, not clinical recommendations.
{
"preset": "mixed_transitional_example",
"include_attribution": true,
"include_therapy_ranking": true
}Sensitivity
POST /sensitivity runs Monte Carlo sweeps over selected weights or inputs and returns score distributions so educators can show how brittle or stable a phenotype verdict is under uncertainty.
{
"preset": "mixed_transitional_example",
"n_samples": 500,
"perturb": { "weights": 0.1, "inputs": 0.05 }
}Disclaimer
Metabolic Scoring Framework is a research and education instrument. It does not diagnose, prognose, or select treatment. Therapy rankings are in-silico hypotheses for experimental follow-up only. Do not use outputs for clinical decision support.