Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Summary
|
| 7 |
+
This dataset provides a benchmark for evaluating the scalability of genomic models to even-longer DNA inputs through a mutation hotspot classification task. Using whole-genome variant data from the **Chinese Pangenome Consortium (CPC)** ([Gao et al., 2023](https://www.nature.com/articles/s41586-023-06173-7)), we identify genomic regions (hotspots) exhibiting significantly higher mutation densities compared to local chromosomal backgrounds. Sequences of 8 Kbp, 32 Kbp, and 128 Kbp are extracted to create three parallel tasks, enabling model comparison across different input lengths. Each sequence is labeled as either hotspot (1) or non-hotspot (0), forming a balanced binary classification dataset designed for evaluating large-context genomic foundation models.
|
| 8 |
+
|
| 9 |
+
## Usage
|
| 10 |
+
```python
|
| 11 |
+
from datasets import load_dataset
|
| 12 |
+
|
| 13 |
+
# Download the full dataset, including 3 tasks and all splits
|
| 14 |
+
dataset = load_dataset("BGI-HangzhouAI/variant-hotspot")
|
| 15 |
+
|
| 16 |
+
# Download a specific task
|
| 17 |
+
task_name = "CPC_8192"
|
| 18 |
+
dataset = load_dataset(
|
| 19 |
+
"BGI-HangzhouAI/variant-hotspot",
|
| 20 |
+
data_files = {
|
| 21 |
+
"train": f"{task_name}/train.jsonl",
|
| 22 |
+
"eval": f"{task_name}/eval.jsonl",
|
| 23 |
+
"test": f"{task_name}/test.jsonl",
|
| 24 |
+
}
|
| 25 |
+
)
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Benchmark tasks
|
| 29 |
+
| Task | `task_name` | Input fields | # Train Seqs | # Validation Seqs | # Test Seqs |
|
| 30 |
+
|-------------|--------------|------------------|---------------|-------------------|--------------|
|
| 31 |
+
| CPC 8K | `CPC_8192` | {seq, label} | 59,011 | 526 | 3,192 |
|
| 32 |
+
| CPC 32K | `CPC_32768` | {seq, label} | 14,471 | 132 | 788 |
|
| 33 |
+
| CPC 128K | `CPC_131072` | {seq, label} | 3,605 | 32 | 188 |
|
| 34 |
+
|
| 35 |
+
## Data Processing
|
| 36 |
+
|
| 37 |
+
### 1. Window segmentation
|
| 38 |
+
Each chromosome from the CPC variant dataset was divided into non-overlapping windows of fixed lengths — **8,192 bp**, **32,768 bp**, or **131,072 bp** — corresponding to the three tasks (CPC 8K, CPC 32K, and CPC 128K).
|
| 39 |
+
|
| 40 |
+
### 2. Variant counting
|
| 41 |
+
For each window, the number of observed mutations (single-nucleotide or small indel events) was counted across all CPC samples.
|
| 42 |
+
|
| 43 |
+
### 3. Statistical identification of mutation hotspots
|
| 44 |
+
To detect regions with significantly elevated mutation density, a Poisson right-tail test was applied under the null hypothesis that mutations occur independently and randomly along the chromosome:
|
| 45 |
+
|
| 46 |
+
$$p = P(X \geq k \mid \lambda)$$
|
| 47 |
+
|
| 48 |
+
where $k$ is the observed mutation count in a window and $\lambda$ is the background mutation rate, estimated as the mean mutation count of all windows within the same chromosome. P-values were corrected for multiple testing using the Benjamini–Hochberg FDR procedure, and windows with FDR < 0.05 were labeled as mutation hotspots (label = 1).
|
| 49 |
+
|
| 50 |
+
### 4. Non-hotspot sampling and balancing
|
| 51 |
+
To construct a balanced dataset, an equal number of non-hotspot windows (label = 0) were randomly sampled from the remaining genomic regions of the same chromosome.
|
| 52 |
+
|
| 53 |
+
### 5. Dataset splitting
|
| 54 |
+
Genomic sequences were split by chromosome to ensure no positional overlap across sets:
|
| 55 |
+
- **Train:** chromosomes 1–6, 9–21, X, Y
|
| 56 |
+
- **Validation:** chromosome 22
|
| 57 |
+
- **Test:** chromosomes 7 and 8
|
| 58 |
+
|
| 59 |
+
### 6. Final format
|
| 60 |
+
Datasets are saved in JSONL format. Each example contains:
|
| 61 |
+
- `"seq"` — the DNA sequence string (A/C/G/T, uppercase)
|
| 62 |
+
- `"label"` — binary hotspot indicator (`1` = hotspot, `0` = non-hotspot)
|