prima·bench
Repo ↗

Fitness & dosage · gene eval

constraint_loeuf

gnomAD (v4.1.1) genetic-constraint regression: predict the `loeuf` loss-of-function observed/expected upper-bound fraction per gene (lower = more constrained) for the GENCODE-v49 protein-coding genes with unflagged constraint metrics (~17.5k). One scalar per gene, paired by `gene_id`; scored primarily with Spearman rank correlation. Split is paralog/family-aware (Ensembl Compara), so paralogs never leak across train/test.

Fitness & dosage Scalar regression gene_regression
01

Spec

TargetgnomAD (v4.1.1) genetic-constraint regression: predict the `loeuf` loss-of-function observed/expected upper-bound fraction per gene (lower = more constrained) for the GENCODE-v49 protein-coding genes with unflagged constraint metrics (~17.5k). One scalar per gene, paired by `gene_id`; scored primarily with Spearman rank correlation. Split is paralog/family-aware (Ensembl Compara), so paralogs never leak across train/test.
AxisFitness & dosage — Essentiality, constraint, and dosage sensitivity.
Shape Scalar regression · metric family: correlation
Taskgene_regression / gene_regression
Datasetchen_2024_nature/constraint_loeuf@0.0.1
Publicationchen_2024_nature
Metrics
  • gene_reg_spearman
  • gene_reg_pearson
  • gene_reg_mse
  • gene_reg_rmse
  • gene_reg_r2
Temporal discoveryno — held-out genes
License Declared per SPDX in the dataset's recipe README ↗ (commercial-use gated by CI).
References

IO contract

pairing_key
gene_id
required_metadata
gene_id
target_kind
gene_score
02

What the prediction looks like

This eval has the scalar regression shape. The figure is seeded to it — drag the control to watch the score respond.

Shape 2scalar score · regressionSpearman ρ

One number per gene — does your ranking match the truth?

Used by essentiality (DepMap) · constraint (LOEUF) · dosage (pHaplo / pTriplo / HIPred)

0.000.501.01.52.0gnomAD LOEUF · ← more constrainedGABRA1SCN2ABRCA1TP53PCSK9CYP2D6● true score (above)○ prediction (below)
true score model predictiononly the rank order is scored — not the absolute value
Spearman ρ0.89
Genes shown6
Full eval17–18k genes

Each gene has one continuous truth value; the metric is Spearman ρ — pure rank agreement, so a model with the ordering right scores well even when its absolute numbers drift. Short vertical connectors mean the ranking held; long slants are rank errors.

03

Run it

Fetch the censored splits, predict, score — task and dataset filled in.

import prima_bench as pb

# Downloads on demand into the local cache; returns local Paths.
train_path, test_path = pb.fetch_data(task="gene_regression", dataset="chen_2024_nature/constraint_loeuf@0.0.1")
train = pb.load(train_path, task="gene_regression", split="train", dataset="chen_2024_nature/constraint_loeuf@0.0.1")
test = pb.load(test_path, task="gene_regression", split="test", dataset="chen_2024_nature/constraint_loeuf@0.0.1")

# Your model produces predictions aligned to the eval input.
predictions = my_model(test)

# Score against the censored solution over this task's metric panel:
#   gene_reg_spearman, gene_reg_pearson, gene_reg_mse, gene_reg_rmse, gene_reg_r2
run = pb.Evaluation(task="gene_regression", dataset="chen_2024_nature/constraint_loeuf@0.0.1")
run.update(predictions=predictions)   # one-shot; or stream shard-by-shard
result = run.compute()                # -> EvalResult
print(result)
04

Results

Awaiting scored models — the row scaffold is live; numbers land with results.json.

Awaiting results · prima-bench

constraint_loeuf · leaderboard

1 evals · 1 datasets · no models scored yet

Evals
1
graded
Datasets
1
sources
Models
pending
Best score
pending
No results.json wired up yet. The eval scaffold below is live; drop a document matching src/data/results.schema.md at src/data/results.json (or pass a results prop) and every bar fills in. Each track's tick marks the chance baseline.

Gene Regression

1
EvalScoreawaiting
constraint_loeufchen_2024_nature/constraint_loeuf@0.0.1
spearman
Scored with prima-bench · fill = metric value · tick = chance baseline · higher is better unless a metric is marked ↓.