Ziyuan-Wang commited on
Commit
7afc664
·
verified ·
1 Parent(s): 48b662c

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,206 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pretty_name: RIBOSPAN-FM-Corpus
4
+
5
+ configs:
6
+ - config_name: default
7
+ data_files:
8
+ - split: train
9
+ path: parquet/train.parquet
10
+ - split: validation
11
+ path: parquet/validation.parquet
12
+ - split: test
13
+ path: parquet/test.parquet
14
+
15
+ tags:
16
+ - biology
17
+ - rna
18
+ - genomics
19
+ - transcriptomics
20
+ - foundation-model
21
+ - pretraining
22
+
23
+ task_categories:
24
+ - fill-mask
25
  ---
26
+
27
+ # RIBOSPAN Pretraining Corpus
28
+
29
+ [![arXiv](https://img.shields.io/badge/arXiv-2608.22849-b31b1b.svg)](https://arxiv.org/abs/2608.22849)
30
+ [![GitHub](https://img.shields.io/badge/RIBOSPAN--FM-181717?logo=github)](https://github.com/GAIR-NLP/RIBOSPAN-FM)
31
+ [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97-RIBOSPAN--FM-yellow)](https://huggingface.co/SII-GAIR-NLP/RIBOSPAN-FM)
32
+
33
+ The **RIBOSPAN Pretraining Corpus** is the RNA sequence corpus used to pretrain the [RIBOSPAN](https://huggingface.co/SII-GAIR-NLP/RIBOSPAN-FM) model family.
34
+
35
+ The corpus combines diverse RNA sequences from **RNAcentral v26.0** with quality-controlled protein-coding transcripts from **Ensembl release 115** and **Ensembl Genomes release 62**.
36
+
37
+ After source-specific filtering, normalization, and exact deduplication, the final training corpus contains **67.6 million RNA sequences** and **85.7 billion nucleotide tokens** in total.
38
+
39
+ ---
40
+
41
+ ## 🧬 Data Sources
42
+
43
+ The RIBOSPAN pretraining corpus was constructed from:
44
+
45
+ - **[RNAcentral v26.0](https://rnacentral.org/)**
46
+ - **[Ensembl release 115](https://www.ensembl.org/)**
47
+ - **[Ensembl Genomes release 62](https://ensemblgenomes.org/)**
48
+
49
+ RNAcentral provides broad coverage across RNA classes, while Ensembl datasets contribute quality-controlled protein-coding transcripts with complete CDS and UTR annotations across vertebrates, plants, fungi, metazoans, and protists.
50
+
51
+ RNAcentral v26.0, Ensembl release 115, and Ensembl Genomes release 62 were curated independently before merging.
52
+
53
+ ---
54
+
55
+ ## 🧩 Data Curation
56
+
57
+ ### Sequence Normalization
58
+
59
+ All sequences were normalized to uppercase, with `U` mapped to `T` and unsupported symbols mapped to `N`.
60
+
61
+ The resulting corpus therefore uses the normalized nucleotide alphabet:
62
+
63
+ ```text
64
+ A C G T N
65
+ ```
66
+
67
+ ### RNAcentral
68
+
69
+ For RNAcentral, the active and inactive sequence sets were combined and exact-deduplicated by sequence using **SeqKit**.
70
+
71
+ ### Ensembl and Ensembl Genomes
72
+
73
+ Ensembl cDNA sequences from vertebrates, plants, fungi, metazoans, and protists were paired with the corresponding release-matched non-ab-initio GTF annotations and filtered to retain complete, high-quality protein-coding transcripts, followed by sequence-level exact deduplication using **SeqKit**.
74
+
75
+ ### Filtering Criteria for Ensembl Protein-Coding Transcripts
76
+
77
+ | Criterion | Requirement |
78
+ |---|---|
79
+ | Annotation | Protein-coding transcript annotation and, when available, protein-coding gene annotation; neither is annotated as a pseudogene. |
80
+ | Completeness | CDS, start codon, stop codon, 5′ UTR, and 3′ UTR annotations are present. |
81
+ | Coding consistency | CDS length is positive and divisible by 3, with consistent start- and stop-codon annotations. |
82
+ | Sequence quality | ≥ 20 nt, ≤ 5% N, and no homopolymer > 50 nt. |
83
+
84
+ ---
85
+
86
+ ## ✂️ Dataset Splits
87
+
88
+ After source-specific filtering, normalization, and exact deduplication, the curated corpus was divided into **training**, **validation**, and **test** splits.
89
+
90
+ The validation and test sets were constructed using class-specific sampling quotas to provide broad representation across RNA classes while reducing the influence of the highly imbalanced training distribution.
91
+
92
+ For protein-coding transcripts, the sampling was further stratified by species.
93
+
94
+ The validation and test sets each contain **90,000 held-out RNA sequences**.
95
+
96
+ The released dataset consists of three sequence-level splits in compressed FASTA format:
97
+
98
+ | Split | File |
99
+ |---|---|
100
+ | Training | `train.fasta.gz` |
101
+ | Validation | `validation.fasta.gz` |
102
+ | Test | `test.fasta.gz` |
103
+
104
+ The validation and test sequences are held out at the sequence level and are not included in the training split.
105
+
106
+ ---
107
+
108
+ ## 📊 Dataset Statistics
109
+
110
+ ### Sequence-Length and RNA-Class Distributions
111
+
112
+ The resulting sequence-length and RNA-class distributions are shown below.
113
+
114
+ ![Pretraining corpus](docs/Pretraining_Corpus.png)
115
+
116
+ *Sequence-length distributions and RNA-class composition of the pretraining corpus.*
117
+
118
+ ### RNA-Class Composition of the Pretraining Corpus and Held-Out Sets
119
+
120
+ | RNA Class | Training | Validation | Test |
121
+ |---|---:|---:|---:|
122
+ | rRNA | 30,748,160 | 10,000 | 10,000 |
123
+ | mRNA | 18,316,110 | 10,000 | 10,000 |
124
+ | tRNA | 6,135,163 | 10,000 | 10,000 |
125
+ | misc RNA | 3,966,721 | 10,000 | 10,000 |
126
+ | lncRNA | 3,818,804 | 10,000 | 10,000 |
127
+ | others | 940,161 | 5,000 | 5,000 |
128
+ | pre miRNA | 804,307 | 5,000 | 5,000 |
129
+ | snoRNA | 598,283 | 5,000 | 5,000 |
130
+ | sRNA | 541,829 | 5,000 | 5,000 |
131
+ | ncRNA | 510,635 | 5,000 | 5,000 |
132
+ | snRNA | 493,584 | 5,000 | 5,000 |
133
+ | SRP RNA | 483,594 | 5,000 | 5,000 |
134
+ | piRNA | 209,734 | 5,000 | 5,000 |
135
+ | **Total** | **67,567,085** | **90,000** | **90,000** |
136
+
137
+ The training corpus follows the natural RNA-class distribution and is therefore highly imbalanced, whereas the held-out validation and test sets use class-specific sampling quotas to provide broad representation across RNA classes.
138
+
139
+ Because RNA classes differ substantially in sequence length, sequence-count proportions do not directly correspond to nucleotide proportions. Long transcript classes such as mRNA therefore contribute disproportionately to the total number of nucleotides relative to their sequence counts.
140
+
141
+ ### Pretraining Corpus Statistics by Split and Source
142
+
143
+ | Split | Source | Sequences | Nucleotide Tokens |
144
+ |---|---|---:|---:|
145
+ | Training | RNAcentral v26.0 | 49,250,975 | 34,111,085,735 |
146
+ | Training | Ensembl 115 / Ensembl Genomes 62 | 18,316,110 | 51,603,244,706 |
147
+ | Validation | Combined | 90,000 | 77,781,035 |
148
+ | Test | Combined | 90,000 | 76,893,030 |
149
+
150
+ The two training sources together contain **67,567,085 RNA sequences** and **85,714,330,441 nucleotide tokens**.
151
+
152
+ Including the validation and test splits, the released corpus contains **67,747,085 RNA sequences** and **85,869,004,506 nucleotides** in total.
153
+
154
+ ---
155
+
156
+ ## 🧾 Sequence Format
157
+
158
+ The corpus is distributed in compressed FASTA format.
159
+
160
+ Each FASTA record corresponds to one independent RNA sequence.
161
+
162
+ ```text
163
+ >sequence_id
164
+ ATGCTGAC...
165
+ ```
166
+
167
+ All released sequences use the normalized nucleotide alphabet:
168
+
169
+ ```text
170
+ A C G T N
171
+ ```
172
+
173
+ RNA uracil (`U`) is represented as thymine (`T`), consistent with the sequence normalization used during RIBOSPAN pretraining.
174
+
175
+ No `[CLS]`, `[SEP]`, `[MASK]`, padding, or other model-specific tokens are stored in the released FASTA files. These tokens are introduced during model-side tokenization and training sample construction.
176
+
177
+ ---
178
+
179
+ ## 🙏 Acknowledgements
180
+
181
+ We thank [RNAcentral](https://rnacentral.org/), [Ensembl](https://www.ensembl.org/), and [Ensembl Genomes](https://ensemblgenomes.org/) for providing the sequence resources used to construct the RIBOSPAN pretraining corpus.
182
+
183
+ We also acknowledge the developers of [SeqKit](https://bioinf.shenwei.me/seqkit/) for providing the sequence-processing toolkit used for exact sequence deduplication during corpus construction.
184
+
185
+ Users of this dataset should appropriately acknowledge and cite the original data resources in accordance with their respective terms and recommended citation practices.
186
+
187
+ ---
188
+
189
+ ## 📖 Citation
190
+
191
+ If you use the **RIBOSPAN Pretraining Corpus** in your research, please cite the RIBOSPAN paper:
192
+
193
+ ```bibtex
194
+ @misc{wang2026ribospan,
195
+ title = {{RIBOSPAN}: A Long-Context {RNA} Foundation Model for Versatile {RNA} Modeling},
196
+ author = {Wang, Ziyuan and Tang, Bohao and Zhang, Fei and Han, Shuo and Liu, Pengfei},
197
+ year = {2026},
198
+ eprint = {2608.22849},
199
+ archivePrefix = {arXiv},
200
+ primaryClass = {cs.LG}
201
+ }
202
+ ```
203
+
204
+ ---
205
+
206
+ **RiboSpan** — Single-nucleotide Pretraining Across Native-context.
docs/Pretraining_Corpus.png ADDED

Git LFS Details

  • SHA256: 125d49cd97a6763148aaf9eecc5dfa40c6a3cb853a18a1cfea3580e592b65bd0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
parquet/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8be9449410ec1350cc6f1f7324882ad7462e5cc5c16d045d40adc35482348319
3
+ size 37008880
parquet/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a71b612769c38dde2a8c34854f8c7e15495690a76c579257478098287209bbde
3
+ size 34982650811
parquet/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cda215173f47edc9a3a8bbd035156f7d768a58c42b42136797d4969caa9699d
3
+ size 37430527
test.fasta.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f81348f76a6014bab809120d18d1cb8fa872c6b073ee056b2275fa12f39bdd1
3
+ size 23606176
train.fasta.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb02e841a2654255d8caa877515506c85bfa25cfbefca188f264d6c7b835db24
3
+ size 19921401955
validation.fasta.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b08ec60186ef9709b49721a5fcbce76607886769de14f172ae350592ef56fa43
3
+ size 23883653