prima·bench
Repo ↗

Fitness & dosage · gene eval

constraint_constrained

gnomAD (v4.1.1) genetic-constraint binary classification (K=2, unconstrained/constrained): predict whether a gene is loss-of-function `constrained` (`loeuf` < 0.6) for the GENCODE-v49 protein-coding genes with unflagged constraint metrics (~17.5k; ~25% positive). Wired to the sample_classification task — `gene_id` is the pairing key, no feature columns (a zero-width input pointer). Scored with AUROC + AUPRC (the ~25% prevalence is the AUPRC random baseline). Same paralog/family-aware gene partition as the `constraint_loeuf` regression eval.

Fitness & dosage Binary classification sample_classification
01

Spec

TargetgnomAD (v4.1.1) genetic-constraint binary classification (K=2, unconstrained/constrained): predict whether a gene is loss-of-function `constrained` (`loeuf` < 0.6) for the GENCODE-v49 protein-coding genes with unflagged constraint metrics (~17.5k; ~25% positive). Wired to the sample_classification task — `gene_id` is the pairing key, no feature columns (a zero-width input pointer). Scored with AUROC + AUPRC (the ~25% prevalence is the AUPRC random baseline). Same paralog/family-aware gene partition as the `constraint_loeuf` regression eval.
AxisFitness & dosage — Essentiality, constraint, and dosage sensitivity.
Shape Binary classification · metric family: auroc
Tasksample_classification / sample_classification
Datasetchen_2024_nature/constraint_constrained@0.0.1
Publicationchen_2024_nature
Metrics
  • sample_auroc
  • sample_sensitivity
  • sample_specificity
  • sample_accuracy
  • sample_f1
  • sample_mcc
  • sample_balanced_accuracy
  • sample_auprc
  • sample_score_correlation
Temporal discoveryno — held-out genes
License Declared per SPDX in the dataset's recipe README ↗ (commercial-use gated by CI).
References

IO contract

operating_threshold_column
operating_threshold
optional_metadata
cohort, disease, assay, split, donor_id
pairing_key
sample_id
prediction_format
(n, K) per-class scores; (n, 1) accepted at K=2
required_metadata
sample_id
target_kind
multiclass_index
02

What the prediction looks like

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

Shape 3binary call · classificationAUROC + MCC

Yes or no — and where do you draw the line?

Used by is-TF · constrained (LOEUF<0.6) · ClinGen haplo / triplo

called + →0.000.250.500.751.00model P(constrained)constrained (LOEUF<0.6) (25%)tolerant
Sensitivity91%
Specificity88%
Precision72%
Positives25%

Two populations, one score axis. Moving the threshold trades sensitivity for specificity. When positives are rare (is-TF is ~8%), accuracy misleads and precision gets brutal — so the panel scores threshold-free AUROC plus MCC and balanced accuracy.

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="sample_classification", dataset="chen_2024_nature/constraint_constrained@0.0.1")
train = pb.load(train_path, task="sample_classification", split="train", dataset="chen_2024_nature/constraint_constrained@0.0.1")
test = pb.load(test_path, task="sample_classification", split="test", dataset="chen_2024_nature/constraint_constrained@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:
#   sample_auroc, sample_sensitivity, sample_specificity, sample_accuracy, sample_f1, sample_mcc, sample_balanced_accuracy, sample_auprc, sample_score_correlation
run = pb.Evaluation(task="sample_classification", dataset="chen_2024_nature/constraint_constrained@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_constrained · 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.

Sample Classification

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