Datasets:
Upload folder using huggingface_hub
Browse files- README.md +58 -0
- synonymous_codons/data.parquet +3 -0
- tata/data.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- biology
|
| 7 |
+
- genomics
|
| 8 |
+
- dna
|
| 9 |
+
- benchmark
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: tata
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: tata/data.parquet
|
| 15 |
+
- config_name: synonymous_codons
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: synonymous_codons/data.parquet
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Carbon Perturbation Bench
|
| 22 |
+
|
| 23 |
+
Two **sequence-level perturbation tasks** for evaluating DNA foundation models:
|
| 24 |
+
|
| 25 |
+
- **`tata`** (5,000 rows): the TATA-box motif inside a real promoter is
|
| 26 |
+
disrupted with random nucleotide substitutions. Probes whether the model
|
| 27 |
+
has internalised eukaryotic promoter architecture (it should assign higher
|
| 28 |
+
log-likelihood to the intact promoter than the perturbed one).
|
| 29 |
+
- **`synonymous_codons`** (5,000 rows): codons in a real CDS are replaced
|
| 30 |
+
with synonyms encoding the same amino acid. Probes whether the model has
|
| 31 |
+
learned codon-usage bias (it should prefer native codon usage over the
|
| 32 |
+
synonymous variant).
|
| 33 |
+
|
| 34 |
+
Both subsets share the same schema:
|
| 35 |
+
|
| 36 |
+
| column | description |
|
| 37 |
+
|---|---|
|
| 38 |
+
| `chr`, `start`, `end`, `strand` | hg38 locus |
|
| 39 |
+
| `length` | sequence length in bp |
|
| 40 |
+
| `original_sequence` | the real (unperturbed) sequence — positive |
|
| 41 |
+
| `sequence` | the perturbed sequence — negative control |
|
| 42 |
+
|
| 43 |
+
## Usage
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from datasets import load_dataset
|
| 47 |
+
|
| 48 |
+
tata = load_dataset("hf-carbon/carbon-perturbation-bench", "tata", split="train")
|
| 49 |
+
syn = load_dataset("hf-carbon/carbon-perturbation-bench", "synonymous_codons", split="train")
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Eval recipe
|
| 53 |
+
|
| 54 |
+
Pairwise likelihood discrimination: score `LL(original_sequence)` vs
|
| 55 |
+
`LL(sequence)` under the model, and report `mean(LL(real) >= LL(perturbed))`.
|
| 56 |
+
A ready-to-run scorer for Carbon, GENERator, and Evo2 lives at
|
| 57 |
+
[`evaluation/perturbation_tasks.py`](https://github.com/huggingface/carbon)
|
| 58 |
+
in the Carbon release repo.
|
synonymous_codons/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:719a21ba635288f7a48e08313a744f2dee1d8cc524b52fdb6f239e6bef3b4a58
|
| 3 |
+
size 3794646
|
tata/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c4b7922cb8db8acc900cdc7a683966313f4f37165088d89b60811d63f92b457
|
| 3 |
+
size 1114392
|