bioinfoihb commited on
Commit
dca48dd
·
verified ·
1 Parent(s): 2678bf4

Upload evolutionary constraint benchmark dataset

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ whole_genome/ctenopharyngodon_idella_train.csv filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,249 @@
1
  ---
2
- license: cc-by-nc-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: FishCaduceus Evolutionary Constraint Benchmark
3
+ language:
4
+ - en
5
+ tags:
6
+ - genomics
7
+ - fish
8
+ - DNA
9
+ - FishCaduceus
10
+ - cyprinid
11
+ - evolutionary-constraint
12
+ - conservation
13
+ - whole-genome-alignment
14
+ - progressive-cactus
15
+ - cross-species-transfer
16
+ - sequence-classification
17
  ---
18
+
19
+ # FishCaduceus Evolutionary Constraint Benchmark
20
+
21
+ ## Dataset description
22
+
23
+ This dataset contains sequence-based benchmarks for evaluating whether FishCaduceus representations capture evolutionary constraint in fish genomes.
24
+
25
+ Constraint labels were derived from a 26-fish whole-genome alignment generated with Progressive Cactus. Grass carp (*Ctenopharyngodon idella*) was used as the primary reference genome for defining aligned and conserved positions. The resulting labeled sites were converted into fixed-length 512-bp sequence windows for zero-shot scoring, frozen-embedding classification, and cross-species evaluation.
26
+
27
+ ## Dataset summary
28
+
29
+ The repository contains two complementary benchmark components:
30
+
31
+ ```text
32
+ .
33
+ ├── region_specific/
34
+ └── whole_genome/
35
+ ```
36
+
37
+ - `whole_genome/` contains the main training, validation, and cross-species test datasets.
38
+ - `region_specific/` contains balanced test sets stratified by CDS, intron, and intergenic regions.
39
+
40
+ The original CSV structure generated by the FishCaduceus constraint pipeline has been preserved. Files were renamed and organized without altering their internal contents.
41
+
42
+ ## Constraint-label construction
43
+
44
+ For each reference position, bases projected from the other genomes in the 26-fish alignment were summarized using:
45
+
46
+ - `n_cov`: number of species with an informative aligned base
47
+ - `n_match`: number of informative species matching the reference base
48
+
49
+ The benchmark uses the following definitions:
50
+
51
+ ```text
52
+ Highly conserved:
53
+ n_cov >= 24 and n_match >= 24
54
+
55
+ Low conservation:
56
+ n_cov >= 24 and n_match <= 10
57
+ ```
58
+
59
+ Positions that did not meet either definition were not used as positive or negative benchmark examples.
60
+
61
+ When a species contributed multiple aligned copies, concordant copies were merged into one species-level vote. Conflicting copies were treated as ambiguous and were excluded from `n_cov` and `n_match`.
62
+
63
+ ## Sequence representation
64
+
65
+ Each benchmark example is represented by a 512-bp genomic sequence window centered on the labeled position.
66
+
67
+ The positive class represents highly conserved positions, whereas the negative class represents low-conservation positions. The distributed CSV files retain the label encoding used by the original FishCaduceus analysis pipeline.
68
+
69
+ ## Whole-genome benchmark
70
+
71
+ The `whole_genome/` directory contains:
72
+
73
+ | Species | Available splits | Role |
74
+ |---|---|---|
75
+ | *Ctenopharyngodon idella* | train / validation / test | reference species for downstream training and held-out evaluation |
76
+ | *Barbodes kweichowensis* | test | cross-species evaluation |
77
+ | *Danio rerio* | test | cross-species evaluation |
78
+ | *Megalobrama amblycephala* | test | cross-species evaluation |
79
+
80
+ The benchmark construction used:
81
+
82
+ | Species and split | Number of examples |
83
+ |---|---:|
84
+ | *Ctenopharyngodon idella* train | 70,000 |
85
+ | *Ctenopharyngodon idella* validation | 10,000 |
86
+ | *Ctenopharyngodon idella* test | 20,000 |
87
+ | Each cross-species test set | 20,000 |
88
+
89
+ These files support training on grass carp and direct evaluation on other fish species without target-species retraining.
90
+
91
+ ## Region-specific benchmark
92
+
93
+ The `region_specific/` directory contains CDS, intron, and intergenic test sets for:
94
+
95
+ - *Ctenopharyngodon idella*
96
+ - *Danio rerio*
97
+ - *Megalobrama amblycephala*
98
+
99
+ Each regional test file was constructed as a balanced dataset containing 5,000 highly conserved and 5,000 low-conservation examples.
100
+
101
+ The regional benchmarks are intended to test whether constraint prediction performance differs among coding and noncoding genomic contexts.
102
+
103
+ ## Repository structure
104
+
105
+ ```text
106
+ .
107
+ ├── region_specific/
108
+ │ ├── ctenopharyngodon_idella/
109
+ │ │ ├── cds_test.csv
110
+ │ │ ├── intergenic_test.csv
111
+ │ │ └── intron_test.csv
112
+ │ ├── danio_rerio/
113
+ │ │ ├── cds_test.csv
114
+ │ │ ├── intergenic_test.csv
115
+ │ │ └── intron_test.csv
116
+ │ └── megalobrama_amblycephala/
117
+ │ ├── cds_test.csv
118
+ │ ├── intergenic_test.csv
119
+ │ └── intron_test.csv
120
+ └── whole_genome/
121
+ ├── barbodes_kweichowensis_test.csv
122
+ ├── ctenopharyngodon_idella_test.csv
123
+ ├── ctenopharyngodon_idella_train.csv
124
+ ├── ctenopharyngodon_idella_validation.csv
125
+ ├── danio_rerio_test.csv
126
+ └── megalobrama_amblycephala_test.csv
127
+ ```
128
+
129
+ ## Dataset structure
130
+
131
+ Each CSV contains the sequence examples and binary labels used in the FishCaduceus evolutionary-constraint analyses. Column names and column order are retained exactly as generated by the original pipeline.
132
+
133
+ The core fields used for modeling are:
134
+
135
+ - a 512-bp nucleotide sequence
136
+ - a binary constraint label
137
+
138
+ Depending on the source file, additional fields related to genomic coordinates or alignment-derived statistics may also be present. Users should inspect the CSV header before adapting the dataset to a new workflow.
139
+
140
+ ## Loading the data
141
+
142
+ ### With pandas
143
+
144
+ ```python
145
+ import pandas as pd
146
+
147
+ train = pd.read_csv(
148
+ "whole_genome/ctenopharyngodon_idella_train.csv"
149
+ )
150
+ validation = pd.read_csv(
151
+ "whole_genome/ctenopharyngodon_idella_validation.csv"
152
+ )
153
+ test = pd.read_csv(
154
+ "whole_genome/ctenopharyngodon_idella_test.csv"
155
+ )
156
+
157
+ cross_species_test = pd.read_csv(
158
+ "whole_genome/danio_rerio_test.csv"
159
+ )
160
+
161
+ print(train.columns.tolist())
162
+ print(train.shape)
163
+ ```
164
+
165
+ ### With Hugging Face Datasets
166
+
167
+ ```python
168
+ from datasets import load_dataset
169
+
170
+ data_files = {
171
+ "train": "whole_genome/ctenopharyngodon_idella_train.csv",
172
+ "validation": "whole_genome/ctenopharyngodon_idella_validation.csv",
173
+ "test": "whole_genome/ctenopharyngodon_idella_test.csv",
174
+ }
175
+
176
+ dataset = load_dataset("csv", data_files=data_files)
177
+ print(dataset)
178
+ ```
179
+
180
+ A region-specific dataset can be loaded separately:
181
+
182
+ ```python
183
+ from datasets import load_dataset
184
+
185
+ dataset = load_dataset(
186
+ "csv",
187
+ data_files={
188
+ "test": (
189
+ "region_specific/danio_rerio/"
190
+ "cds_test.csv"
191
+ ),
192
+ },
193
+ )
194
+ ```
195
+
196
+ ## Benchmark protocol
197
+
198
+ The supervised transfer protocol used in the FishCaduceus study is:
199
+
200
+ 1. train a classifier using only the *Ctenopharyngodon idella* training split;
201
+ 2. perform model selection using only the *Ctenopharyngodon idella* validation split;
202
+ 3. report held-out performance on the *Ctenopharyngodon idella* test split;
203
+ 4. evaluate the selected classifier directly on the other species;
204
+ 5. do not use target-species labels for retraining or parameter adjustment.
205
+
206
+ The dataset can also be used for zero-shot scoring by masking or otherwise scoring the center nucleotide with a pretrained DNA language model.
207
+
208
+ ## Intended uses
209
+
210
+ This dataset is intended for research on:
211
+
212
+ - evolutionary constraint prediction
213
+ - conservation-aware genomic representation learning
214
+ - frozen-embedding classification
215
+ - zero-shot nucleotide scoring
216
+ - cross-species transfer
217
+ - comparative genomics
218
+ - evaluation across CDS, intronic, and intergenic regions
219
+
220
+ ## Limitations
221
+
222
+ - Constraint classes are computational labels derived from a specific 26-fish whole-genome alignment and fixed thresholds.
223
+ - The labels are not equivalent to experimentally validated functional annotations.
224
+ - Results depend on genome assembly quality, alignment quality, reference choice, species sampling, and multi-copy handling.
225
+ - Repetitive, duplicated, poorly assembled, or rapidly evolving regions may be underrepresented or more difficult to align.
226
+ - The highly conserved and low-conservation classes represent the two ends of the alignment-based conservation spectrum and do not cover all genomic positions.
227
+ - The included test species and genomic regions do not represent the full diversity of fish genomes.
228
+
229
+ ## Related models
230
+
231
+ - [FishCaduceus-20L-512](https://huggingface.co/FishCaduceus/FishCaduceus-20L-512)
232
+ - [FishCaduceus-28L-512](https://huggingface.co/FishCaduceus/FishCaduceus-28L-512)
233
+ - [FishCaduceus-28L-1024](https://huggingface.co/FishCaduceus/FishCaduceus-28L-1024)
234
+
235
+ ## Citation
236
+
237
+ The FishCaduceus manuscript is in preparation. Citation information will be added after publication.
238
+
239
+ When using this benchmark, please cite the FishCaduceus manuscript and the original genome resources used in the 26-fish whole-genome alignment.
240
+
241
+ ## Acknowledgements
242
+
243
+ FishCaduceus was developed for research on fish genomes at the Institute of Hydrobiology, Chinese Academy of Sciences.
244
+
245
+ ## Contact
246
+
247
+ Xiao-Qin Xia
248
+ Institute of Hydrobiology, Chinese Academy of Sciences
249
+ Email: xqxia@ihb.ac.cn
region_specific/ctenopharyngodon_idella/cds_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/ctenopharyngodon_idella/intergenic_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/ctenopharyngodon_idella/intron_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/danio_rerio/cds_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/danio_rerio/intergenic_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/danio_rerio/intron_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/megalobrama_amblycephala/cds_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/megalobrama_amblycephala/intergenic_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
region_specific/megalobrama_amblycephala/intron_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
whole_genome/barbodes_kweichowensis_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
whole_genome/ctenopharyngodon_idella_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
whole_genome/ctenopharyngodon_idella_train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bdcedc487362e80c9795138bb26d18cb267eb7a02da7cff914e4976df1ff093
3
+ size 36050015
whole_genome/ctenopharyngodon_idella_validation.csv ADDED
The diff for this file is too large to render. See raw diff
 
whole_genome/danio_rerio_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
whole_genome/megalobrama_amblycephala_test.csv ADDED
The diff for this file is too large to render. See raw diff