Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- dna
|
| 7 |
+
- variant-effect-prediction
|
| 8 |
+
- biology
|
| 9 |
+
- genomics
|
| 10 |
+
- non-coding
|
| 11 |
+
- regulatory-variants
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: mendelian_traits
|
| 14 |
+
data_files:
|
| 15 |
+
- split: test
|
| 16 |
+
path: mendelian_traits_vep.parquet
|
| 17 |
+
- config_name: complex_traits
|
| 18 |
+
data_files:
|
| 19 |
+
- split: test
|
| 20 |
+
path: complex_traits_vep.parquet
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# TraitGym + 8,192 bp pre-extracted windows
|
| 24 |
+
|
| 25 |
+
This dataset is a **convenience repackaging** of [`songlab/TraitGym`](https://huggingface.co/datasets/songlab/TraitGym) (Benegas, Eraslan & Song, bioRxiv 2025.02.11.637758), with one extra step done offline: for every variant we pre-extract the 8,192 bp window centered on the variant from the hg38 reference, plus the same window with the alt allele substituted. This avoids loading and querying the human genome at eval time when running zero-shot DNA-LM scoring through `brca_eval.py`-style pipelines.
|
| 26 |
+
|
| 27 |
+
The variants, labels and matched controls are **identical** to the original `songlab/TraitGym` `_matched_9` configs. We add only the `ref_seq` and `var_seq` columns. Cite the original paper for any use of this benchmark.
|
| 28 |
+
|
| 29 |
+
## Configs
|
| 30 |
+
|
| 31 |
+
- **`mendelian_traits`** (n = 3,380): 338 putative-causal non-coding variants from 113 monogenic Mendelian diseases (curated from OMIM), matched 9:1 against gnomAD common-variant controls on chromosome × consequence × TSS-distance.
|
| 32 |
+
- **`complex_traits`** (n = 11,400): 1,140 putative-causal non-coding variants from 83 polygenic UK BioBank traits (PIP > 0.9 from statistical fine-mapping), matched 9:1 against PIP < 0.01 controls on chromosome × consequence × TSS-distance × MAF × LD score.
|
| 33 |
+
|
| 34 |
+
Source datasets:
|
| 35 |
+
- [`songlab/TraitGym/mendelian_traits_matched_9`](https://huggingface.co/datasets/songlab/TraitGym)
|
| 36 |
+
- [`songlab/TraitGym/complex_traits_matched_9`](https://huggingface.co/datasets/songlab/TraitGym)
|
| 37 |
+
|
| 38 |
+
## Schema
|
| 39 |
+
|
| 40 |
+
| column | description |
|
| 41 |
+
|--------|-------------|
|
| 42 |
+
| `chrom` | chromosome (`1`–`22`, `X`, `Y`) |
|
| 43 |
+
| `pos` | 1-indexed hg38 position |
|
| 44 |
+
| `ref`, `alt` | single bases (SNVs only) |
|
| 45 |
+
| `label` | int 0/1 (1 = causal/positive, 0 = matched control) |
|
| 46 |
+
| `class` | `"LOF"` (label=1) or `"FUNC/INT"` (label=0) — added so the standard `brca_eval.py` AUROC code path works without changes |
|
| 47 |
+
| `consequence` | molecular consequence from the source dataset |
|
| 48 |
+
| `tss_dist` | distance to nearest TSS |
|
| 49 |
+
| `match_group` | matched-controls group ID (preserve from source) |
|
| 50 |
+
| `score` | continuous PIP for `complex_traits`; `None` for `mendelian_traits` |
|
| 51 |
+
| `ref_seq`, `var_seq` | **8,192 bp window centered on the variant** (variant at index 4096), forward strand from chr-fasta-hg38 (UCSC). `var_seq` is `ref_seq` with the alt base substituted at index 4096. Reverse-complement is computed at eval time when `--rev_comp_avg` is requested (matches TraitGym's `run_vep_evo2.py` strand-symmetric scoring). |
|
| 52 |
+
|
| 53 |
+
## Eval methodology
|
| 54 |
+
|
| 55 |
+
Same recipe as our other VEP evals (BRCA1, BRCA2, ClinVar): `delta = LL(var_seq) − LL(ref_seq)` from a centered 8,192 bp window. Score per-variant; AUROC / AUPRC / `AUPRC_by_chrom_weighted_average` (the TraitGym leaderboard convention) against the binary label. Optional `--rev_comp_avg` averages the LLR computed on the forward window and on its reverse-complement, exactly as TraitGym does.
|
| 56 |
+
|
| 57 |
+
Eval scripts:
|
| 58 |
+
- [`reproduction-evo2-evals/brca/brca_eval.py`](https://github.com/huggingface/carbon/tree/evo2-evals/evaluation/reproduction-evo2-evals/brca/brca_eval.py) — gene-agnostic centered+full-LL eval
|
| 59 |
+
- Sharded variant: [`reproduction-evo2-evals/traitgym/`](https://github.com/huggingface/carbon/tree/evo2-evals/evaluation/reproduction-evo2-evals/traitgym/) — array-job sharding for Evo2 7B+/40B
|
| 60 |
+
|
| 61 |
+
## Citation
|
| 62 |
+
|
| 63 |
+
If you use TraitGym, cite the original paper:
|
| 64 |
+
|
| 65 |
+
```
|
| 66 |
+
@article{benegas2025traitgym,
|
| 67 |
+
title = {Benchmarking DNA Sequence Models for Causal Regulatory Variant Prediction in Human Genetics},
|
| 68 |
+
author = {Benegas, Gonzalo and Eraslan, Gokcen and Song, Yun S.},
|
| 69 |
+
journal = {bioRxiv},
|
| 70 |
+
year = {2025},
|
| 71 |
+
doi = {10.1101/2025.02.11.637758}
|
| 72 |
+
}
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Leaderboard: [`songlab/TraitGym-leaderboard`](https://huggingface.co/spaces/songlab/TraitGym-leaderboard) on HF Spaces.
|