Datasets:
Update dataset card: describe syn_human, syn_mouse, motif_human tasks
Browse files
README.md
CHANGED
|
@@ -12,10 +12,6 @@ configs:
|
|
| 12 |
data_files:
|
| 13 |
- split: test
|
| 14 |
path: motif_human/test-*
|
| 15 |
-
- config_name: promoter_revcomp
|
| 16 |
-
data_files:
|
| 17 |
-
- split: test
|
| 18 |
-
path: promoter_revcomp/test-*
|
| 19 |
- config_name: syn_human
|
| 20 |
data_files:
|
| 21 |
- split: test
|
|
@@ -24,352 +20,104 @@ configs:
|
|
| 24 |
data_files:
|
| 25 |
- split: test
|
| 26 |
path: syn_mouse/test-*
|
| 27 |
-
- config_name: synonymous_codons
|
| 28 |
-
data_files:
|
| 29 |
-
- split: train
|
| 30 |
-
path: synonymous_codons/data.parquet
|
| 31 |
-
- config_name: tata
|
| 32 |
-
data_files:
|
| 33 |
-
- split: train
|
| 34 |
-
path: tata/data.parquet
|
| 35 |
-
dataset_info:
|
| 36 |
-
- config_name: motif_human
|
| 37 |
-
features:
|
| 38 |
-
- name: benchmark_id
|
| 39 |
-
dtype: string
|
| 40 |
-
- name: script_version
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: annotation_source
|
| 43 |
-
dtype: string
|
| 44 |
-
- name: genome_assembly
|
| 45 |
-
dtype: string
|
| 46 |
-
- name: upstream_flank_bp
|
| 47 |
-
dtype: int64
|
| 48 |
-
- name: motif
|
| 49 |
-
dtype: string
|
| 50 |
-
- name: actual_motif
|
| 51 |
-
dtype: string
|
| 52 |
-
- name: patch_len_bp
|
| 53 |
-
dtype: int64
|
| 54 |
-
- name: start_after_bp
|
| 55 |
-
dtype: int64
|
| 56 |
-
- name: random_seed
|
| 57 |
-
dtype: int64
|
| 58 |
-
- name: species
|
| 59 |
-
dtype: string
|
| 60 |
-
- name: chr
|
| 61 |
-
dtype: string
|
| 62 |
-
- name: chrom_length
|
| 63 |
-
dtype: int64
|
| 64 |
-
- name: strand
|
| 65 |
-
dtype: string
|
| 66 |
-
- name: cds_genome_start
|
| 67 |
-
dtype: int64
|
| 68 |
-
- name: cds_genome_end
|
| 69 |
-
dtype: int64
|
| 70 |
-
- name: window_genome_start
|
| 71 |
-
dtype: int64
|
| 72 |
-
- name: window_genome_end
|
| 73 |
-
dtype: int64
|
| 74 |
-
- name: upstream_actual
|
| 75 |
-
dtype: int64
|
| 76 |
-
- name: is_clamped
|
| 77 |
-
dtype: int64
|
| 78 |
-
- name: transcript_id
|
| 79 |
-
dtype: string
|
| 80 |
-
- name: gene_id
|
| 81 |
-
dtype: string
|
| 82 |
-
- name: gene_name
|
| 83 |
-
dtype: string
|
| 84 |
-
- name: exon_rank
|
| 85 |
-
dtype: int64
|
| 86 |
-
- name: is_first_exon
|
| 87 |
-
dtype: int64
|
| 88 |
-
- name: frame
|
| 89 |
-
dtype: int64
|
| 90 |
-
- name: phase_gtf
|
| 91 |
-
dtype: int64
|
| 92 |
-
- name: cds_start_in_seq
|
| 93 |
-
dtype: int64
|
| 94 |
-
- name: cds_end_in_seq
|
| 95 |
-
dtype: int64
|
| 96 |
-
- name: cds_length
|
| 97 |
-
dtype: int64
|
| 98 |
-
- name: patch_start_in_cds
|
| 99 |
-
dtype: int64
|
| 100 |
-
- name: patch_end_in_cds
|
| 101 |
-
dtype: int64
|
| 102 |
-
- name: patch_start_in_seq
|
| 103 |
-
dtype: int64
|
| 104 |
-
- name: patch_end_in_seq
|
| 105 |
-
dtype: int64
|
| 106 |
-
- name: original_sequence
|
| 107 |
-
dtype: string
|
| 108 |
-
- name: sequence
|
| 109 |
-
dtype: string
|
| 110 |
-
splits:
|
| 111 |
-
- name: test
|
| 112 |
-
num_bytes: 334784354
|
| 113 |
-
num_examples: 20000
|
| 114 |
-
download_size: 152132105
|
| 115 |
-
dataset_size: 334784354
|
| 116 |
-
- config_name: promoter_revcomp
|
| 117 |
-
features:
|
| 118 |
-
- name: benchmark_id
|
| 119 |
-
dtype: string
|
| 120 |
-
- name: species
|
| 121 |
-
dtype: string
|
| 122 |
-
- name: genome_assembly
|
| 123 |
-
dtype: string
|
| 124 |
-
- name: annotation_source
|
| 125 |
-
dtype: string
|
| 126 |
-
- name: total_window
|
| 127 |
-
dtype: int64
|
| 128 |
-
- name: prom_up
|
| 129 |
-
dtype: int64
|
| 130 |
-
- name: prom_down
|
| 131 |
-
dtype: int64
|
| 132 |
-
- name: prom_len
|
| 133 |
-
dtype: int64
|
| 134 |
-
- name: chr
|
| 135 |
-
dtype: string
|
| 136 |
-
- name: start
|
| 137 |
-
dtype: int64
|
| 138 |
-
- name: end
|
| 139 |
-
dtype: int64
|
| 140 |
-
- name: strand
|
| 141 |
-
dtype: string
|
| 142 |
-
- name: tss_1based
|
| 143 |
-
dtype: int64
|
| 144 |
-
- name: epd_id
|
| 145 |
-
dtype: string
|
| 146 |
-
- name: gene_id
|
| 147 |
-
dtype: string
|
| 148 |
-
- name: tss_in_seq
|
| 149 |
-
dtype: int64
|
| 150 |
-
- name: cds_start_in_seq
|
| 151 |
-
dtype: int64
|
| 152 |
-
- name: cds_end_in_seq
|
| 153 |
-
dtype: int64
|
| 154 |
-
- name: original_sequence
|
| 155 |
-
dtype: string
|
| 156 |
-
- name: sequence
|
| 157 |
-
dtype: string
|
| 158 |
-
splits:
|
| 159 |
-
- name: test
|
| 160 |
-
num_bytes: 272641634
|
| 161 |
-
num_examples: 16451
|
| 162 |
-
download_size: 125178388
|
| 163 |
-
dataset_size: 272641634
|
| 164 |
-
- config_name: syn_human
|
| 165 |
-
features:
|
| 166 |
-
- name: benchmark_id
|
| 167 |
-
dtype: string
|
| 168 |
-
- name: script_version
|
| 169 |
-
dtype: string
|
| 170 |
-
- name: annotation_source
|
| 171 |
-
dtype: string
|
| 172 |
-
- name: genome_assembly
|
| 173 |
-
dtype: string
|
| 174 |
-
- name: codon_usage_source
|
| 175 |
-
dtype: string
|
| 176 |
-
- name: recoding_mode
|
| 177 |
-
dtype: string
|
| 178 |
-
- name: optimization_rate
|
| 179 |
-
dtype: float64
|
| 180 |
-
- name: random_seed
|
| 181 |
-
dtype: int64
|
| 182 |
-
- name: window_size_bp
|
| 183 |
-
dtype: int64
|
| 184 |
-
- name: species
|
| 185 |
-
dtype: string
|
| 186 |
-
- name: chr
|
| 187 |
-
dtype: string
|
| 188 |
-
- name: chrom_length
|
| 189 |
-
dtype: int64
|
| 190 |
-
- name: strand
|
| 191 |
-
dtype: string
|
| 192 |
-
- name: cds_genome_start
|
| 193 |
-
dtype: int64
|
| 194 |
-
- name: cds_genome_end
|
| 195 |
-
dtype: int64
|
| 196 |
-
- name: window_genome_start
|
| 197 |
-
dtype: int64
|
| 198 |
-
- name: window_genome_end
|
| 199 |
-
dtype: int64
|
| 200 |
-
- name: upstream_actual
|
| 201 |
-
dtype: int64
|
| 202 |
-
- name: downstream_actual
|
| 203 |
-
dtype: int64
|
| 204 |
-
- name: is_clamped
|
| 205 |
-
dtype: int64
|
| 206 |
-
- name: transcript_id
|
| 207 |
-
dtype: string
|
| 208 |
-
- name: gene_id
|
| 209 |
-
dtype: string
|
| 210 |
-
- name: gene_name
|
| 211 |
-
dtype: string
|
| 212 |
-
- name: exon_rank
|
| 213 |
-
dtype: int64
|
| 214 |
-
- name: is_first_exon
|
| 215 |
-
dtype: int64
|
| 216 |
-
- name: frame
|
| 217 |
-
dtype: int64
|
| 218 |
-
- name: phase_gtf
|
| 219 |
-
dtype: int64
|
| 220 |
-
- name: cds_start_in_seq
|
| 221 |
-
dtype: int64
|
| 222 |
-
- name: cds_end_in_seq
|
| 223 |
-
dtype: int64
|
| 224 |
-
- name: cds_length
|
| 225 |
-
dtype: int64
|
| 226 |
-
- name: patch_start_in_seq
|
| 227 |
-
dtype: int64
|
| 228 |
-
- name: patch_end_in_seq
|
| 229 |
-
dtype: int64
|
| 230 |
-
- name: patch_length
|
| 231 |
-
dtype: int64
|
| 232 |
-
- name: n_codons_total
|
| 233 |
-
dtype: int64
|
| 234 |
-
- name: n_codons_eligible
|
| 235 |
-
dtype: int64
|
| 236 |
-
- name: n_codons_changed
|
| 237 |
-
dtype: int64
|
| 238 |
-
- name: fraction_codons_changed
|
| 239 |
-
dtype: float64
|
| 240 |
-
- name: original_sequence
|
| 241 |
-
dtype: string
|
| 242 |
-
- name: sequence
|
| 243 |
-
dtype: string
|
| 244 |
-
splits:
|
| 245 |
-
- name: test
|
| 246 |
-
num_bytes: 335904126
|
| 247 |
-
num_examples: 20000
|
| 248 |
-
download_size: 152737063
|
| 249 |
-
dataset_size: 335904126
|
| 250 |
-
- config_name: syn_mouse
|
| 251 |
-
features:
|
| 252 |
-
- name: benchmark_id
|
| 253 |
-
dtype: string
|
| 254 |
-
- name: script_version
|
| 255 |
-
dtype: string
|
| 256 |
-
- name: annotation_source
|
| 257 |
-
dtype: string
|
| 258 |
-
- name: genome_assembly
|
| 259 |
-
dtype: string
|
| 260 |
-
- name: codon_usage_source
|
| 261 |
-
dtype: string
|
| 262 |
-
- name: recoding_mode
|
| 263 |
-
dtype: string
|
| 264 |
-
- name: optimization_rate
|
| 265 |
-
dtype: float64
|
| 266 |
-
- name: random_seed
|
| 267 |
-
dtype: int64
|
| 268 |
-
- name: window_size_bp
|
| 269 |
-
dtype: int64
|
| 270 |
-
- name: species
|
| 271 |
-
dtype: string
|
| 272 |
-
- name: chr
|
| 273 |
-
dtype: string
|
| 274 |
-
- name: chrom_length
|
| 275 |
-
dtype: int64
|
| 276 |
-
- name: strand
|
| 277 |
-
dtype: string
|
| 278 |
-
- name: cds_genome_start
|
| 279 |
-
dtype: int64
|
| 280 |
-
- name: cds_genome_end
|
| 281 |
-
dtype: int64
|
| 282 |
-
- name: window_genome_start
|
| 283 |
-
dtype: int64
|
| 284 |
-
- name: window_genome_end
|
| 285 |
-
dtype: int64
|
| 286 |
-
- name: upstream_actual
|
| 287 |
-
dtype: int64
|
| 288 |
-
- name: downstream_actual
|
| 289 |
-
dtype: int64
|
| 290 |
-
- name: is_clamped
|
| 291 |
-
dtype: int64
|
| 292 |
-
- name: transcript_id
|
| 293 |
-
dtype: string
|
| 294 |
-
- name: gene_id
|
| 295 |
-
dtype: string
|
| 296 |
-
- name: gene_name
|
| 297 |
-
dtype: string
|
| 298 |
-
- name: exon_rank
|
| 299 |
-
dtype: int64
|
| 300 |
-
- name: is_first_exon
|
| 301 |
-
dtype: int64
|
| 302 |
-
- name: frame
|
| 303 |
-
dtype: int64
|
| 304 |
-
- name: phase_gtf
|
| 305 |
-
dtype: int64
|
| 306 |
-
- name: cds_start_in_seq
|
| 307 |
-
dtype: int64
|
| 308 |
-
- name: cds_end_in_seq
|
| 309 |
-
dtype: int64
|
| 310 |
-
- name: cds_length
|
| 311 |
-
dtype: int64
|
| 312 |
-
- name: patch_start_in_seq
|
| 313 |
-
dtype: int64
|
| 314 |
-
- name: patch_end_in_seq
|
| 315 |
-
dtype: int64
|
| 316 |
-
- name: patch_length
|
| 317 |
-
dtype: int64
|
| 318 |
-
- name: n_codons_total
|
| 319 |
-
dtype: int64
|
| 320 |
-
- name: n_codons_eligible
|
| 321 |
-
dtype: int64
|
| 322 |
-
- name: n_codons_changed
|
| 323 |
-
dtype: int64
|
| 324 |
-
- name: fraction_codons_changed
|
| 325 |
-
dtype: float64
|
| 326 |
-
- name: original_sequence
|
| 327 |
-
dtype: string
|
| 328 |
-
- name: sequence
|
| 329 |
-
dtype: string
|
| 330 |
-
splits:
|
| 331 |
-
- name: test
|
| 332 |
-
num_bytes: 336064778
|
| 333 |
-
num_examples: 20000
|
| 334 |
-
download_size: 152659316
|
| 335 |
-
dataset_size: 336064778
|
| 336 |
---
|
| 337 |
|
| 338 |
# Carbon Perturbation Bench
|
| 339 |
|
| 340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
learned codon-usage bias (it should prefer native codon usage over the
|
| 349 |
-
synonymous variant).
|
| 350 |
|
| 351 |
-
|
|
|
|
| 352 |
|
| 353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
|---|---|
|
| 355 |
-
| `
|
| 356 |
-
| `
|
| 357 |
-
| `
|
| 358 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
|
| 360 |
## Usage
|
| 361 |
|
| 362 |
```python
|
| 363 |
from datasets import load_dataset
|
| 364 |
|
| 365 |
-
|
| 366 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
```
|
| 368 |
|
| 369 |
-
|
|
|
|
|
|
|
| 370 |
|
| 371 |
-
|
| 372 |
-
`LL(sequence)` under the model, and report `mean(LL(real) >= LL(perturbed))`.
|
| 373 |
-
A ready-to-run scorer for Carbon, GENERator, and Evo2 lives at
|
| 374 |
[`evaluation/perturbation_tasks.py`](https://github.com/huggingface/carbon)
|
| 375 |
-
in the Carbon release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
data_files:
|
| 13 |
- split: test
|
| 14 |
path: motif_human/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
- config_name: syn_human
|
| 16 |
data_files:
|
| 17 |
- split: test
|
|
|
|
| 20 |
data_files:
|
| 21 |
- split: test
|
| 22 |
path: syn_mouse/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
---
|
| 24 |
|
| 25 |
# Carbon Perturbation Bench
|
| 26 |
|
| 27 |
+
A benchmark of **sequence-level perturbation tasks** for evaluating DNA foundation models.
|
| 28 |
+
Each task presents pairs of genomic sequences — one real (unperturbed) and one structurally
|
| 29 |
+
altered — and asks whether the model assigns higher log-likelihood to the original.
|
| 30 |
+
|
| 31 |
+
**Metric**: pairwise discrimination accuracy = `mean(LL(original) > LL(perturbed))`
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Tasks
|
| 36 |
+
|
| 37 |
+
### `syn_human` · `syn_mouse` — Synonymous codon substitution (20,000 pairs each)
|
| 38 |
+
|
| 39 |
+
Codons within a real CDS are replaced with the highest-frequency synonym for the target
|
| 40 |
+
species (`recoding_mode = "optimize"`, `optimization_rate = 1.0`), while the upstream and
|
| 41 |
+
downstream flanking sequence is left unchanged. Amino acid identity is preserved by
|
| 42 |
+
construction. The model should prefer the natural codon usage over the artificially
|
| 43 |
+
optimised variant.
|
| 44 |
+
|
| 45 |
+
- **Human** (`syn_human`): GENCODE v45 annotations on GRCh38/hg38; codon frequencies from
|
| 46 |
+
CoCoPUTs (*H. sapiens* RefSeq CDS); 9,616 unique genes.
|
| 47 |
+
- **Mouse** (`syn_mouse`): GENCODE vM34 annotations on GRCm39/mm39; codon frequencies from
|
| 48 |
+
CoCoPUTs (*M. musculus* RefSeq CDS); 10,253 unique genes.
|
| 49 |
+
- Window size: 8,192 bp centred on the CDS (`cds_start_in_seq` / `cds_end_in_seq`).
|
| 50 |
+
- Mean fraction of codons changed: ~55% (range 10–95%).
|
| 51 |
+
|
| 52 |
+
### `motif_human` — CAG repeat insertion (20,000 pairs)
|
| 53 |
|
| 54 |
+
A 30 bp region within a real human CDS — starting 60 bp downstream of the CDS start —
|
| 55 |
+
is replaced with 10 consecutive CAG triplets (`CAGCAGCAGCAGCAGCAGCAGCAGCAGCAG`),
|
| 56 |
+
mimicking the pathological trinucleotide repeat expansions underlying polyglutamine
|
| 57 |
+
disorders (Huntington's disease, SCAs, DRPLA). The substitution is length-preserving
|
| 58 |
+
(30 bp in, 30 bp out), so the total window remains 8,192 bp. All sequence outside the
|
| 59 |
+
patch is identical between original and perturbed.
|
|
|
|
|
|
|
| 60 |
|
| 61 |
+
- Annotations: GENCODE v45 / GRCh38; 9,705 unique genes.
|
| 62 |
+
- Window layout: ~8,100 bp upstream flank, CDS near the right edge.
|
| 63 |
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## Schema
|
| 67 |
+
|
| 68 |
+
All configs share the key columns:
|
| 69 |
+
|
| 70 |
+
| Column | Description |
|
| 71 |
|---|---|
|
| 72 |
+
| `original_sequence` | Real, unperturbed genomic sequence — **positive** |
|
| 73 |
+
| `sequence` | Structurally altered sequence — **negative** |
|
| 74 |
+
| `cds_start_in_seq` / `cds_end_in_seq` | CDS boundaries within the window (bp offset) |
|
| 75 |
+
| `chr`, `strand` | Genomic locus |
|
| 76 |
+
| `gene_name`, `transcript_id` | GENCODE annotation |
|
| 77 |
+
| `benchmark_id` | Unique row identifier |
|
| 78 |
+
|
| 79 |
+
Config-specific columns (e.g. `patch_start_in_seq`, `n_codons_changed`,
|
| 80 |
+
`fraction_codons_changed`, `codon_usage_source`) are described in `dataset_info` above.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
|
| 84 |
## Usage
|
| 85 |
|
| 86 |
```python
|
| 87 |
from datasets import load_dataset
|
| 88 |
|
| 89 |
+
# Synonymous codon substitution — human
|
| 90 |
+
syn_human = load_dataset(
|
| 91 |
+
"HuggingFaceBio/carbon-perturbation-bench", "syn_human", split="test"
|
| 92 |
+
)
|
| 93 |
+
|
| 94 |
+
# Synonymous codon substitution — mouse
|
| 95 |
+
syn_mouse = load_dataset(
|
| 96 |
+
"HuggingFaceBio/carbon-perturbation-bench", "syn_mouse", split="test"
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
# CAG motif insertion
|
| 100 |
+
motif = load_dataset(
|
| 101 |
+
"HuggingFaceBio/carbon-perturbation-bench", "motif_human", split="test"
|
| 102 |
+
)
|
| 103 |
```
|
| 104 |
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## Evaluation
|
| 108 |
|
| 109 |
+
A ready-to-run scorer for Carbon, GENERator, and Evo2 is available at
|
|
|
|
|
|
|
| 110 |
[`evaluation/perturbation_tasks.py`](https://github.com/huggingface/carbon)
|
| 111 |
+
in the Carbon release repository.
|
| 112 |
+
|
| 113 |
+
```bash
|
| 114 |
+
python evaluation/perturbation_tasks.py \
|
| 115 |
+
--task syn_human \
|
| 116 |
+
--model HuggingFaceBio/Carbon-3B \
|
| 117 |
+
--bf16
|
| 118 |
+
|
| 119 |
+
python evaluation/perturbation_tasks.py \
|
| 120 |
+
--task motif_human \
|
| 121 |
+
--model arcinstitute/evo2_7b --backend evo2 \
|
| 122 |
+
--bf16
|
| 123 |
+
```
|