Skip to main content

Breeding Values (EBV)

The /api/ebv endpoints provide access to genetic evaluation results: computation runs, EBV per queen, and consolidated results.

Runs

MethodRouteDescription
GET/api/ebv/runsList runs (?status, ?limit, ?offset)
GET/api/ebv/runs/[id]Run detail + artifacts + summary

Each run represents a complete execution of the genetic pipeline. Possible statuses are: pending, running, completed, failed.

Results

MethodRouteDescription
GET/api/ebv/latestLatest results (?trait, ?entity_type, ?sort, ?order)
GET/api/ebv/queens/[id]EBV for a queen (?run_id, ?history=true)

EBV Response Format

{
"trait": "honey",
"raw_value": 2.45,
"normalized_value": 112,
"reliability_r2": 0.68,
"run_id": "uuid-of-the-run",
"entity_type": "queen"
}
FieldDescription
traitTrait name (honey, gentleness, vigor, wintering, swarming, comb_sitting, hyg6, hyg24)
raw_valueRaw EBV value
normalized_valueBeeBreed-like normalized value (100 + 10 x (raw - mean) / std)
reliability_r2Reliability r² (0 to 1)
run_idComputation run identifier
entity_typeEntity type (queen or worker)

The ?history=true parameter on /api/ebv/queens/[id] returns the EBV history across all runs to visualize the evolution over time.

Compute (admin only)

The compute endpoints trigger the various stages of the genetic pipeline. They require admin authentication (HMAC cookie).

MethodRouteDescription
POST/api/env/computeEnvironment pipeline (geocoding + weather)
POST/api/xgb/computeXGBoost correction (environmental effect)
POST/api/ebv/computeBLUPF90 (continuous traits: honey)
POST/api/thrg/computeTHRGIBBS + normalization (ordinal traits)
POST/api/ebv/oneshotFull pipeline (env + xgb + blup + thrg)
Admin required

Compute endpoints require a valid admin HMAC cookie. They trigger heavy computations on the worker and should only be used by administrators.


See also: Evaluations | Queens | Export