File size: 10,615 Bytes
a264aa2 8950149 a264aa2 91273a1 a264aa2 1d7f46c a264aa2 1d7f46c 8950149 a264aa2 1d7f46c a264aa2 1d7f46c 91273a1 4332d8e 91273a1 4332d8e 91273a1 a264aa2 91273a1 1d7f46c 4332d8e 532c6d4 4332d8e 1f522bf 532c6d4 8950149 4332d8e 8950149 1d7f46c 1f522bf 1d7f46c 91273a1 1d7f46c 91273a1 1d7f46c 1f522bf 1d7f46c 91273a1 2d45f20 91273a1 1d7f46c a264aa2 1d7f46c a264aa2 1d7f46c a264aa2 1d7f46c a264aa2 1d7f46c a264aa2 1d7f46c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | ---
configs:
- config_name: binary
data_files:
- split: train
path: binary/train-*
- config_name: clinvar_levels
data_files:
- split: train
path: clinvar_levels/train-*
- config_name: pathogenic_pairwise
data_files:
- split: train
path: pathogenic_pairwise/train-*
- config_name: pairwise_allele_localization_8192
data_files:
- split: train
path: pairwise_allele_localization_8192/train-*
- config_name: all_tasks
data_files:
- split: train
path: all_tasks/train-*
---
# VEPQA
VEPQA is a supervised fine-tuning dataset for variant-effect-prediction style question answering over DNA sequence context. It is built from raw ClinVar variant records and UCSC hg38 reference sequence windows, with deterministic gold labels from ClinVar.
## Configs
- `binary`: binary clinical-significance classification.
- `clinvar_levels`: finer-grained ClinVar clinical-significance classification.
- `pathogenic_pairwise`: reference-vs-alternate sequence preference for pathogenic or likely pathogenic variants.
- `pairwise_allele_localization_8192`: 8,192 bp control task over the same source rows as `pathogenic_pairwise`; asks which allele appears in each sequence at the final variant position, without asking for pathogenicity.
- `all_tasks`: concatenation of the original three task configs. This config is intentionally unchanged by the localization-task addition.
## Row Format
Each row includes:
- `question`: the task prompt body before the reusable answer instruction/options suffix.
- `prompt_suffix`: the reusable answer instruction/options suffix.
- `prompt`: the full user-facing prompt, equal to `question + "\n\n" + prompt_suffix`.
- `options`: allowed answer labels for the task.
- `answer_index`: index of the correct option.
- `answer_text`: deterministic plain-text target.
- `messages`: two-turn SFT messages, with the plain answer in the assistant message.
- `gold_answer_json`: JSON-form audit target, not the primary SFT target.
- audit metadata: ClinVar IDs, genomic position, review status, sequence hashes, and benchmark exclusion status.
For evaluation, use `prompt` as model input and compare to `answer_text` or `answer_index`. Use `question` and `prompt_suffix` when you need to inspect or vary the prompt template. The `messages` column is intended for SFT and includes the answer.
## Provenance
Source variant table:
- ClinVar `variant_summary.txt.gz`.
Reference sequence:
- UCSC hg38 per-chromosome FASTA files.
Carbon eval exclusion manifest:
- BRCA2 VEP: `HuggingFaceBio/brca2-vep`
- TraitGym Mendelian VEP: `HuggingFaceBio/traitgym`, Mendelian VEP parquet
- Carbon ClinVar VEP: `HuggingFaceBio/clinvar-vep-final`, coding and non-coding parquets
The dataset was generated from raw ClinVar records, not from Carbon benchmark rows.
Dataset-wide provenance summary:
```json
{
"source": {
"clinvar_variant_summary": 6000
},
"assembly": {
"GRCh38": 6000
},
"origin": {
"germline": 6000
},
"variant_type": {
"single nucleotide variant": 6000
},
"window_bp": {
"8192": 6000
},
"variant_window_placement": {
"final": 6000
},
"variant_index_0based": {
"8191": 6000
},
"variant_position_1based": {
"8192": 6000
},
"benchmark_exclusion_status": {
"checked": 6000
}
}
```
Every prompt sequence is 8,192 bp long and is wrapped in closed DNA tags, for example `<dna>...</dna>`. The variant is placed at the final base of the sequence context: `variant_index_0based = 8191`, equivalent to `variant_position_1based = 8192`.
The `all_tasks` config has 6,000 task rows but 4,000 unique variant keys. The `binary` and `clinvar_levels` configs are two views of the same 2,000 clinical-classification variants; `pathogenic_pairwise` contributes 2,000 additional pathogenic or likely pathogenic variants. The `pairwise_allele_localization_8192` config is a separate diagnostic view over the same 2,000 source rows as `pathogenic_pairwise` and is not included in `all_tasks`.
Unique variant chromosome distribution across `all_tasks`:
```json
{
"1": 375,
"2": 395,
"3": 193,
"4": 100,
"5": 180,
"6": 150,
"7": 209,
"8": 109,
"9": 164,
"10": 128,
"11": 261,
"12": 209,
"13": 69,
"14": 92,
"15": 139,
"16": 205,
"17": 344,
"18": 49,
"19": 213,
"20": 81,
"21": 45,
"22": 72,
"X": 218
}
```
Task-row chromosome distribution in `all_tasks`:
```json
{
"1": 572,
"2": 571,
"3": 283,
"4": 160,
"5": 271,
"6": 216,
"7": 316,
"8": 169,
"9": 258,
"10": 190,
"11": 386,
"12": 310,
"13": 103,
"14": 146,
"15": 198,
"16": 324,
"17": 511,
"18": 78,
"19": 321,
"20": 129,
"21": 74,
"22": 112,
"X": 302
}
```
### Pairwise Allele Localization 8192
The `pairwise_allele_localization_8192` config contains 2,000 rows using the same ClinVar source variants as `pathogenic_pairwise`. It presents the two 8,192 bp DNA sequences and asks the model to identify which allele appears in each sequence at position 8192. This is a sequence-comparison / allele-binding diagnostic, not a pathogenicity classification task.
Label distribution:
```json
{
"Likely pathogenic": 659,
"Pathogenic": 670,
"Pathogenic/Likely pathogenic": 671
}
```
Chromosome distribution:
```json
{
"1": 178,
"2": 219,
"3": 103,
"4": 40,
"5": 89,
"6": 84,
"7": 102,
"8": 49,
"9": 70,
"10": 66,
"11": 136,
"12": 108,
"13": 35,
"14": 38,
"15": 80,
"16": 86,
"17": 177,
"18": 20,
"19": 105,
"20": 33,
"21": 16,
"22": 32,
"X": 134
}
```
## ClinVar Filtering
Rows were retained from ClinVar only if they met all of the following criteria:
- Assembly: `GRCh38`.
- Variant type: single nucleotide variant.
- Origin: germline.
- Chromosome: autosomes or `X`.
- Clean VCF alleles: one-base `A/C/G/T` reference and alternate alleles.
- Clinical significance in one of:
- `Benign`
- `Likely benign`
- `Benign/Likely benign`
- `Likely pathogenic`
- `Pathogenic`
- `Pathogenic/Likely pathogenic`
- Review status in the strict set:
- `practice guideline`
- `reviewed by expert panel`
- `criteria provided, multiple submitters, no conflicts`
The larger `criteria provided, single submitter` class was intentionally not used.
## Eval-Overlap Exclusion
To avoid overlap with Carbon VEP evaluations, a manifest was built from the Carbon BRCA2, TraitGym Mendelian, and ClinVar VEP evaluation datasets. Candidate ClinVar SFT rows were excluded if either:
- the exact variant key `(assembly, chrom, pos, ref, alt)` appeared in the Carbon eval manifest; or
- the candidate position fell inside an expanded eval interval in the same assembly.
The interval buffers used in the manifest were:
- BRCA2: 8,192 bp buffer around each eval variant.
- TraitGym Mendelian: 8,192 bp buffer around each eval variant.
- Carbon ClinVar VEP: 24,000 bp buffer around each eval variant.
Carbon's BRCA2 eval rows are represented in `hg19`, while this dataset is `GRCh38`. To avoid relying on liftover during this build, the dataset additionally hard-excludes a conservative GRCh38 BRCA2 locus interval:
```text
chr13:32,300,000-32,420,000
```
After these gates, the sampled dataset has:
```text
benchmark_exclusion_status: checked
excluded_from_benchmark_eval: true
```
## Task Design
### `binary`
The prompt states the mutation location in natural language and shows an 8,192 bp DNA sequence window containing the alternate allele at the final base of the context. For example, it tells the model that the variant is at position 8,192 using 1-based indexing, and that the reference allele is changed to the alternate allele at that position. The model is asked to answer with exactly one option:
```text
benign or likely benign
pathogenic or likely pathogenic
```
This config collapses ClinVar benign/likely-benign labels and pathogenic/likely-pathogenic labels into two classes. The collapsed natural-text label is retained in `label_binary`, and the model-facing answer text uses the same format.
### `clinvar_levels`
This task uses the same sequence prompt style as `binary`, including the natural-language mutation location sentence, but preserves the retained raw ClinVar label. Allowed answers are:
```text
Benign
Likely benign
Benign/Likely benign
Likely pathogenic
Pathogenic/Likely pathogenic
Pathogenic
```
### `pathogenic_pairwise`
This task compares the reference and alternate sequence for a single ClinVar pathogenic or likely pathogenic SNV. Sequence A/B order is randomized. Because the alternate allele is labeled pathogenic or likely pathogenic, the reference sequence is treated as more consistent with normal biological function.
The model is asked to answer with exactly one option:
```text
Sequence A
Sequence B
```
This task is not a benign-vs-pathogenic matched-pair task. Benign or likely benign alternate alleles are not used for this reference-vs-alternate target, because a benign alternate allele is not necessarily less functional than the reference.
## Data Distribution
Config sizes:
```json
{
"binary": 2000,
"clinvar_levels": 2000,
"pathogenic_pairwise": 2000,
"all_tasks": 6000
}
```
Clinical-classification raw-label distribution, used by both `binary` and `clinvar_levels`:
```json
{
"Benign": 333,
"Benign/Likely benign": 334,
"Likely benign": 333,
"Likely pathogenic": 333,
"Pathogenic": 334,
"Pathogenic/Likely pathogenic": 333
}
```
`pathogenic_pairwise` raw-label distribution:
```json
{
"Likely pathogenic": 659,
"Pathogenic": 670,
"Pathogenic/Likely pathogenic": 671
}
```
Review-status distribution over the 4,000 unique prompt rows:
```json
{
"criteria provided, multiple submitters, no conflicts": 3651,
"reviewed by expert panel": 348,
"practice guideline": 1
}
```
Build-stage counts:
```json
{
"raw_rows_scanned": 8907730,
"strict_clinvar_candidates": 333140,
"after_carbon_eval_manifest_gate": 333140,
"excluded_by_grch38_brca2_locus": 3818,
"after_grch38_brca2_locus_exclusion": 329322,
"sampled_prompt_rows": 4000
}
```
## Limitations
- Labels are ClinVar clinical-significance labels, not direct experimental functional measurements.
- `review_status` and submitter counts are included as metadata but are not shown in the prompt; the model is not trained to infer evidence strength.
- The current release has only a `train` split. A larger training run should introduce region-disjoint validation data with an interval buffer.
- The pairwise task is reference-vs-pathogenic-alternate only. A benign-vs-pathogenic matched-pair task would require separate matching logic.
|