Update VEPQA to 2k examples per task
Browse files
.gitattributes
CHANGED
|
@@ -58,3 +58,7 @@ 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 |
+
all_tasks/train-00000-of-00001.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
binary/train-00000-of-00001.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
clinvar_levels/train-00000-of-00001.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
pathogenic_pairwise/train-00000-of-00001.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -20,66 +20,199 @@ configs:
|
|
| 20 |
|
| 21 |
# VEPQA
|
| 22 |
|
| 23 |
-
|
| 24 |
-
and UCSC hg38 sequence windows.
|
| 25 |
|
| 26 |
-
Configs
|
| 27 |
|
| 28 |
-
- `binary`: binary
|
| 29 |
-
- `clinvar_levels`: finer-grained ClinVar
|
| 30 |
-
- `pathogenic_pairwise`: reference-vs-alternate sequence preference for pathogenic
|
| 31 |
-
- `all_tasks`: concatenation of the
|
| 32 |
|
| 33 |
-
Row
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
- `
|
| 38 |
-
- `
|
|
|
|
|
|
|
| 39 |
- audit metadata: ClinVar IDs, genomic position, review status, sequence hashes, and benchmark exclusion status.
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 64 |
-
"clinvar_levels": {
|
| 65 |
-
"Benign": 23,
|
| 66 |
-
"Benign/Likely benign": 8,
|
| 67 |
-
"Likely benign": 9,
|
| 68 |
-
"Likely pathogenic": 3,
|
| 69 |
-
"Pathogenic": 19,
|
| 70 |
-
"Pathogenic/Likely pathogenic": 18
|
| 71 |
-
},
|
| 72 |
-
"pathogenic_pairwise": {
|
| 73 |
-
"Likely pathogenic": 2,
|
| 74 |
-
"Pathogenic": 12,
|
| 75 |
-
"Pathogenic/Likely pathogenic": 6
|
| 76 |
-
}
|
| 77 |
}
|
| 78 |
```
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
-
|
| 83 |
-
-
|
| 84 |
-
-
|
| 85 |
-
-
|
|
|
|
| 20 |
|
| 21 |
# VEPQA
|
| 22 |
|
| 23 |
+
VEPQA is a small 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. It does not use teacher-model rollouts.
|
|
|
|
| 24 |
|
| 25 |
+
## Configs
|
| 26 |
|
| 27 |
+
- `binary`: binary clinical-significance classification.
|
| 28 |
+
- `clinvar_levels`: finer-grained ClinVar clinical-significance classification.
|
| 29 |
+
- `pathogenic_pairwise`: reference-vs-alternate sequence preference for pathogenic or likely pathogenic variants.
|
| 30 |
+
- `all_tasks`: concatenation of the three task configs.
|
| 31 |
|
| 32 |
+
## Row Format
|
| 33 |
|
| 34 |
+
Each row includes:
|
| 35 |
+
|
| 36 |
+
- `question` / `prompt`: the user-facing prompt.
|
| 37 |
+
- `answer` / `gold_answer_json`: deterministic JSON target.
|
| 38 |
+
- `messages`: two-turn SFT messages, with the gold answer in the assistant message.
|
| 39 |
+
- `choices`: allowed labels for the task.
|
| 40 |
- audit metadata: ClinVar IDs, genomic position, review status, sequence hashes, and benchmark exclusion status.
|
| 41 |
|
| 42 |
+
For evaluation, use `question` or `prompt` as model input and compare to `answer` or `gold_answer_json`. The `messages` column is intended for SFT and includes the answer.
|
| 43 |
+
|
| 44 |
+
## Provenance
|
| 45 |
+
|
| 46 |
+
Source variant table:
|
| 47 |
+
|
| 48 |
+
- ClinVar `variant_summary.txt.gz`.
|
| 49 |
+
|
| 50 |
+
Reference sequence:
|
| 51 |
+
|
| 52 |
+
- UCSC hg38 per-chromosome FASTA files.
|
| 53 |
+
|
| 54 |
+
Carbon eval exclusion manifest:
|
| 55 |
+
|
| 56 |
+
- BRCA2 VEP: `HuggingFaceBio/brca2-vep`
|
| 57 |
+
- TraitGym Mendelian VEP: `HuggingFaceBio/traitgym`, Mendelian VEP parquet
|
| 58 |
+
- Carbon ClinVar VEP: `HuggingFaceBio/clinvar-vep-final`, coding and non-coding parquets
|
| 59 |
+
|
| 60 |
+
The dataset was generated from raw ClinVar records, not from Carbon benchmark rows.
|
| 61 |
+
|
| 62 |
+
## ClinVar Filtering
|
| 63 |
+
|
| 64 |
+
Rows were retained from ClinVar only if they met all of the following criteria:
|
| 65 |
+
|
| 66 |
+
- Assembly: `GRCh38`.
|
| 67 |
+
- Variant type: single nucleotide variant.
|
| 68 |
+
- Origin: germline.
|
| 69 |
+
- Chromosome: autosomes or `X`.
|
| 70 |
+
- Clean VCF alleles: one-base `A/C/G/T` reference and alternate alleles.
|
| 71 |
+
- Clinical significance in one of:
|
| 72 |
+
- `Benign`
|
| 73 |
+
- `Likely benign`
|
| 74 |
+
- `Benign/Likely benign`
|
| 75 |
+
- `Likely pathogenic`
|
| 76 |
+
- `Pathogenic`
|
| 77 |
+
- `Pathogenic/Likely pathogenic`
|
| 78 |
+
- Review status in the strict set:
|
| 79 |
+
- `practice guideline`
|
| 80 |
+
- `reviewed by expert panel`
|
| 81 |
+
- `criteria provided, multiple submitters, no conflicts`
|
| 82 |
+
|
| 83 |
+
The larger `criteria provided, single submitter` class was intentionally not used.
|
| 84 |
+
|
| 85 |
+
## Eval-Overlap Exclusion
|
| 86 |
+
|
| 87 |
+
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:
|
| 88 |
+
|
| 89 |
+
- the exact variant key `(assembly, chrom, pos, ref, alt)` appeared in the Carbon eval manifest; or
|
| 90 |
+
- the candidate position fell inside an expanded eval interval in the same assembly.
|
| 91 |
+
|
| 92 |
+
The interval buffers used in the manifest were:
|
| 93 |
+
|
| 94 |
+
- BRCA2: 8,192 bp buffer around each eval variant.
|
| 95 |
+
- TraitGym Mendelian: 8,192 bp buffer around each eval variant.
|
| 96 |
+
- Carbon ClinVar VEP: 24,000 bp buffer around each eval variant.
|
| 97 |
+
|
| 98 |
+
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:
|
| 99 |
+
|
| 100 |
+
```text
|
| 101 |
+
chr13:32,300,000-32,420,000
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
After these gates, the sampled dataset has:
|
| 105 |
+
|
| 106 |
+
```text
|
| 107 |
+
benchmark_exclusion_status: checked
|
| 108 |
+
excluded_from_benchmark_eval: true
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
## Task Design
|
| 112 |
+
|
| 113 |
+
### `binary`
|
| 114 |
+
|
| 115 |
+
The prompt shows the reference allele, alternate allele, and a 1,024 bp DNA sequence window containing the alternate allele. The target is:
|
| 116 |
+
|
| 117 |
+
```json
|
| 118 |
+
{"clinical_significance":"benign_or_likely_benign"}
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
or:
|
| 122 |
+
|
| 123 |
+
```json
|
| 124 |
+
{"clinical_significance":"pathogenic_or_likely_pathogenic"}
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
This config collapses ClinVar benign/likely-benign labels and pathogenic/likely-pathogenic labels into two classes.
|
| 128 |
+
|
| 129 |
+
### `clinvar_levels`
|
| 130 |
+
|
| 131 |
+
This task uses the same sequence prompt style as `binary`, but preserves the retained raw ClinVar label:
|
| 132 |
+
|
| 133 |
+
```json
|
| 134 |
+
{"clinvar_level":"Pathogenic"}
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
Allowed values are:
|
| 138 |
+
|
| 139 |
+
```text
|
| 140 |
+
Benign
|
| 141 |
+
Likely benign
|
| 142 |
+
Benign/Likely benign
|
| 143 |
+
Likely pathogenic
|
| 144 |
+
Pathogenic/Likely pathogenic
|
| 145 |
+
Pathogenic
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
### `pathogenic_pairwise`
|
| 149 |
+
|
| 150 |
+
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.
|
| 151 |
+
|
| 152 |
+
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.
|
| 153 |
+
|
| 154 |
+
## Data Distribution
|
| 155 |
+
|
| 156 |
+
Config sizes:
|
| 157 |
+
|
| 158 |
+
```json
|
| 159 |
+
{
|
| 160 |
+
"binary": 2000,
|
| 161 |
+
"clinvar_levels": 2000,
|
| 162 |
+
"pathogenic_pairwise": 2000,
|
| 163 |
+
"all_tasks": 6000
|
| 164 |
+
}
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
Clinical-classification raw-label distribution, used by both `binary` and `clinvar_levels`:
|
| 168 |
+
|
| 169 |
+
```json
|
| 170 |
+
{
|
| 171 |
+
"Benign": 333,
|
| 172 |
+
"Benign/Likely benign": 334,
|
| 173 |
+
"Likely benign": 333,
|
| 174 |
+
"Likely pathogenic": 333,
|
| 175 |
+
"Pathogenic": 334,
|
| 176 |
+
"Pathogenic/Likely pathogenic": 333
|
| 177 |
+
}
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
`pathogenic_pairwise` raw-label distribution:
|
| 181 |
+
|
| 182 |
+
```json
|
| 183 |
+
{
|
| 184 |
+
"Likely pathogenic": 659,
|
| 185 |
+
"Pathogenic": 670,
|
| 186 |
+
"Pathogenic/Likely pathogenic": 671
|
| 187 |
+
}
|
| 188 |
+
```
|
| 189 |
+
|
| 190 |
+
Review-status distribution over the 4,000 unique prompt rows:
|
| 191 |
|
| 192 |
```json
|
| 193 |
{
|
| 194 |
+
"criteria provided, multiple submitters, no conflicts": 3651,
|
| 195 |
+
"reviewed by expert panel": 348,
|
| 196 |
+
"practice guideline": 1
|
|
|
|
| 197 |
}
|
| 198 |
```
|
| 199 |
|
| 200 |
+
Build-stage counts:
|
| 201 |
|
| 202 |
```json
|
| 203 |
{
|
| 204 |
+
"raw_rows_scanned": 8907730,
|
| 205 |
+
"strict_clinvar_candidates": 333140,
|
| 206 |
+
"after_carbon_eval_manifest_gate": 333140,
|
| 207 |
+
"excluded_by_grch38_brca2_locus": 3818,
|
| 208 |
+
"after_grch38_brca2_locus_exclusion": 329322,
|
| 209 |
+
"sampled_prompt_rows": 4000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
}
|
| 211 |
```
|
| 212 |
|
| 213 |
+
## Limitations
|
| 214 |
|
| 215 |
+
- Labels are ClinVar clinical-significance labels, not direct experimental functional measurements.
|
| 216 |
+
- `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.
|
| 217 |
+
- The current release has only a `train` split. A larger training run should introduce region-disjoint validation data with an interval buffer.
|
| 218 |
+
- The pairwise task is reference-vs-pathogenic-alternate only. A benign-vs-pathogenic matched-pair task would require separate matching logic.
|
all_tasks/train-00000-of-00001.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
binary/train-00000-of-00001.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
clinvar_levels/train-00000-of-00001.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pathogenic_pairwise/train-00000-of-00001.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|