Taykhoom commited on
Commit
df4c39c
·
verified ·
1 Parent(s): 5a7cc30

Expand dataset documentation

Browse files
Files changed (1) hide show
  1. README.md +134 -23
README.md CHANGED
@@ -1,38 +1,149 @@
1
  ---
2
  pretty_name: "GAMBA Functional Region Multiclass"
3
  license: mit
4
- tags: [biology, genomics, genome-language-model, benchmark, hg38, parquet]
 
 
 
 
 
 
 
 
 
5
  configs:
6
  - config_name: full-causal
7
- data_files: [{split: all, path: functional-multiclass-gamba-full-causal.parquet}]
 
 
8
  - config_name: full-bidi
9
- data_files: [{split: all, path: functional-multiclass-gamba-full-bidi.parquet}]
 
 
10
  - config_name: 100bp-causal
11
- data_files: [{split: all, path: functional-multiclass-gamba-100bp-causal.parquet}]
 
 
12
  - config_name: 100bp-bidi
13
- data_files: [{split: all, path: functional-multiclass-gamba-100bp-bidi.parquet}]
 
 
14
  ---
15
 
16
- # GAMBA functional-region multiclass benchmark
17
 
18
- The full configs contain 94,284 rows and pool the retained ROI. The 100 bp
19
- configs contain 67,626 rows and pool a deterministic BLAKE2-selected 100 bp
20
- subspan. Filtering `category != "noncoding_regions"` recovers the GAMBA paper
21
- views with corrected RepeatMasker orientation (84,841 full rows or 58,646
22
- 100 bp rows).
23
 
24
- Use `*-causal` for left-to-right models and `*-bidi` for
25
- masked/bidirectional models. The parquet `split` column marks `chr2`, `chr3`,
26
- `chr16`, and `chr22` as held-out `test`; Hugging Face split `all` loads the
27
- physical file.
28
 
29
- Coordinates are zero-based, half-open hg38. `sequence` is strand-oriented,
30
- and `pool_start_in_window`/`pool_end_in_window` defines the model evaluation
31
- span. Repeat rows preserve `repeat_class`; all emitted strands are `+` or `-`.
32
- The phyloP columns use the pinned Zoonomia 241-mammal track.
33
 
34
- Processing is derived from Microsoft GAMBA commit
35
- `e83984ea20bb4ee017993144fbe17e7bae3cdddc` and corrects the source
36
- RepeatMasker strand/class field mapping.
 
 
37
 
38
- Please cite Consens et al. (2026), doi:10.64898/2026.02.02.703275.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  pretty_name: "GAMBA Functional Region Multiclass"
3
  license: mit
4
+ tags:
5
+ - biology
6
+ - genomics
7
+ - dna
8
+ - regulatory-genomics
9
+ - genome-language-model
10
+ - multiclass-classification
11
+ - benchmark
12
+ - hg38
13
+ - parquet
14
  configs:
15
  - config_name: full-causal
16
+ data_files:
17
+ - split: all
18
+ path: functional-multiclass-gamba-full-causal.parquet
19
  - config_name: full-bidi
20
+ data_files:
21
+ - split: all
22
+ path: functional-multiclass-gamba-full-bidi.parquet
23
  - config_name: 100bp-causal
24
+ data_files:
25
+ - split: all
26
+ path: functional-multiclass-gamba-100bp-causal.parquet
27
  - config_name: 100bp-bidi
28
+ data_files:
29
+ - split: all
30
+ path: functional-multiclass-gamba-100bp-bidi.parquet
31
  ---
32
 
33
+ # GAMBA Functional Region Multiclass
34
 
35
+ This representation benchmark asks whether frozen sequence embeddings
36
+ separate genomic functional categories. Each row is one annotated region;
37
+ `label == category`.
 
 
38
 
39
+ ## Loading
 
 
 
40
 
41
+ ```python
42
+ from datasets import load_dataset
 
 
43
 
44
+ full_bidi = load_dataset(
45
+ "Taykhoom/functional-multiclass-gamba",
46
+ "full-bidi",
47
+ split="all",
48
+ )
49
 
50
+ paper_test = full_bidi.filter(
51
+ lambda row: row["split"] == "test"
52
+ and row["category"] != "noncoding_regions"
53
+ )
54
+ ```
55
+
56
+ ## Choosing a configuration
57
+
58
+ The two dimensions are independent:
59
+
60
+ | Dimension | Options | Meaning |
61
+ |---|---|---|
62
+ | Context | `causal`, `bidi` | End-anchor ROI for autoregressive models or center it for bidirectional models. |
63
+ | Pooling | `full`, `100bp` | Pool over the retained ROI or a deterministic 100 bp subspan. |
64
+
65
+ The `full` name refers to the retained ROI visible in the 2,048 bp context;
66
+ very long features may be clipped according to GAMBA's context rules. It does
67
+ not mean an unlimited genomic interval.
68
+
69
+ The 100 bp span is selected deterministically from the ROI. Published
70
+ `pair_id` values remain stable for unchanged source examples, so unrelated
71
+ RepeatMasker corrections do not shift their chosen windows.
72
+
73
+ ## Dataset size
74
+
75
+ | Config family | Complete rows | Held-out test | Corrected paper rows | Corrected paper test |
76
+ |---|---:|---:|---:|---:|
77
+ | `full-*` | 94,284 | 18,916 | 84,841 | 16,992 |
78
+ | `100bp-*` | 67,626 | 13,593 | 58,646 | 11,781 |
79
+
80
+ The corrected paper view excludes `category == "noncoding_regions"`.
81
+
82
+ ## Labels
83
+
84
+ Full configs contain eleven labels:
85
+
86
+ | Category | Rows |
87
+ |---|---:|
88
+ | repeats | 9,991 |
89
+ | UCNE | 4,169 |
90
+ | vista_enhancer | 2,628 |
91
+ | promoters | 9,971 |
92
+ | UTR5 | 9,802 |
93
+ | UTR3 | 9,693 |
94
+ | coding_regions | 9,893 |
95
+ | exons | 9,915 |
96
+ | introns | 9,026 |
97
+ | upstream_TSS | 9,753 |
98
+ | noncoding_regions | 9,443 |
99
+
100
+ The 100 bp configs contain 67,626 rows. Promoter entries do not satisfy the
101
+ 100 bp retained-span criterion and are absent; `vista_enhancer` has 2,621
102
+ rows, and other categories are filtered by eligible ROI length.
103
+
104
+ ## Evaluation protocol
105
+
106
+ For the corrected paper evaluation:
107
+
108
+ 1. filter `split == "test"`;
109
+ 2. exclude `noncoding_regions`;
110
+ 3. pool embeddings over the stored span;
111
+ 4. perform cosine leave-one-out 1-nearest-neighbor classification;
112
+ 5. report balanced accuracy.
113
+
114
+ No supervised model-fitting split is implied by Hugging Face split `all`.
115
+
116
+ ## Columns
117
+
118
+ | Column group | Description |
119
+ |---|---|
120
+ | `split`, `sequence`, `label`, `pair_id` | Chromosome partition, exact input, functional class, and stable feature ID. |
121
+ | `category`, `repeat_class`, `scope`, `context_policy` | Source class, nullable repeat class, `full`/`100bp` scope, and context geometry. |
122
+ | `chrom`, `start`, `end`, `strand` | Zero-based, half-open hg38 feature coordinates. |
123
+ | `context_start`, `context_end` | Forward-genome context coordinates. |
124
+ | `roi_start`, `roi_end` | Retained feature offsets in oriented `sequence`. |
125
+ | `pool_start_in_window`, `pool_end_in_window` | Evaluation span; ROI or selected 100 bp subspan. |
126
+ | `name` | Source annotation identifier. |
127
+ | `phylop_*`, `phylop_context_*` | Pooling-span and symmetric-context phyloP summaries. |
128
+
129
+ ## RepeatMasker correction
130
+
131
+ RepeatMasker genomic strand and repeat class are stored separately. This
132
+ release corrects an earlier local conversion that placed the repeat class in
133
+ the strand column, then regenerates repeat-derived contexts, pools, controls,
134
+ and phyloP features. Labels are unchanged.
135
+
136
+ ## Processing and citation
137
+
138
+ Processing and verification:
139
+
140
+ https://github.com/TaykhoomDalal/Gamba-Processing/tree/main/Functional-Regions
141
+
142
+ Consens, M. E. et al. *Predicting evolutionary rate as a pretraining task
143
+ improves genome language model representations*. bioRxiv (2026).
144
+ https://doi.org/10.64898/2026.02.02.703275
145
+
146
+ ## License
147
+
148
+ GAMBA benchmark code/data are MIT licensed. Upstream resources retain their
149
+ own terms.