Datasets:
Add dataset card for ChatNT-style DNALongBench conversion
Browse files
README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
tags:
|
| 8 |
+
- genomics
|
| 9 |
+
- dna
|
| 10 |
+
- long-context
|
| 11 |
+
- benchmark
|
| 12 |
+
- chat-format
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# DNALongBench ChatNT-Style v1
|
| 18 |
+
|
| 19 |
+
This repository contains a **derived, ChatNT-style serialization** of two long-range binary classification tasks from [DNALongBench](https://github.com/wenduocheng/DNALongBench): enhancer-target gene prediction (ETGP) and eQTL prediction (eQTLP). It is intended to make the tasks convenient for DNA + text multimodal model evaluation and supervised fine-tuning.
|
| 20 |
+
|
| 21 |
+
It is **not an official DNALongBench release** and does not include the original source tables or reference genomes. Please cite and comply with the original DNALongBench data sources and licenses when using this derivative.
|
| 22 |
+
|
| 23 |
+
## Contents
|
| 24 |
+
|
| 25 |
+
```text
|
| 26 |
+
etgp_v1/
|
| 27 |
+
train.jsonl.gz
|
| 28 |
+
valid.jsonl.gz
|
| 29 |
+
test.jsonl.gz
|
| 30 |
+
manifest.json
|
| 31 |
+
eqtlp_v1/
|
| 32 |
+
train.jsonl.gz
|
| 33 |
+
valid.jsonl.gz
|
| 34 |
+
test.jsonl.gz
|
| 35 |
+
manifest.json
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
All JSONL files are gzip-compressed. Each sample has a fixed 450,000 bp DNA context.
|
| 39 |
+
|
| 40 |
+
| Task | Train | Validation | Test | Positive labels in test |
|
| 41 |
+
|---|---:|---:|---:|---:|
|
| 42 |
+
| ETGP | 2,066 | 266 | 270 | 10 |
|
| 43 |
+
| eQTLP | 20,364 | 6,554 | 4,297 | 190 |
|
| 44 |
+
|
| 45 |
+
The official DNALongBench splits are preserved. Both tasks are strongly imbalanced, so AUROC should be accompanied by AUPRC and class-aware metrics.
|
| 46 |
+
|
| 47 |
+
## Tasks
|
| 48 |
+
|
| 49 |
+
### ETGP: enhancer-target gene prediction
|
| 50 |
+
|
| 51 |
+
Given a 450 kb genomic context and metadata for an enhancer candidate, target gene, and K562 cell type, predict whether the enhancer regulates the gene (`Yes` or `No`).
|
| 52 |
+
|
| 53 |
+
### eQTLP: eQTL prediction
|
| 54 |
+
|
| 55 |
+
Given matched 450 kb reference and alternate allele contexts plus tissue and gene metadata, predict whether the variant is an eQTL (`Yes` or `No`).
|
| 56 |
+
|
| 57 |
+
## Data format
|
| 58 |
+
|
| 59 |
+
Each line is a standalone JSON object. The conversation format follows ChatNT-style multimodal references: text references a named DNA span, while DNA is stored separately in `dna_sequences`.
|
| 60 |
+
|
| 61 |
+
```json
|
| 62 |
+
{
|
| 63 |
+
"id": "dnalongbench_etgp_k562_test_0000022",
|
| 64 |
+
"messages": [
|
| 65 |
+
{
|
| 66 |
+
"role": "user",
|
| 67 |
+
"content": "Task: enhancer-target gene prediction. Does the tested enhancer regulate BAX in K562, based on the long genomic sequence <DNA_1>? Answer Yes or No."
|
| 68 |
+
},
|
| 69 |
+
{"role": "assistant", "content": "No"}
|
| 70 |
+
],
|
| 71 |
+
"dna_sequences": [
|
| 72 |
+
{"name": "DNA_1", "role": "genomic_context", "sequence": "ACGT..."}
|
| 73 |
+
],
|
| 74 |
+
"target": "No",
|
| 75 |
+
"meta": {
|
| 76 |
+
"task_name": "etgp",
|
| 77 |
+
"split": "test",
|
| 78 |
+
"label": 0,
|
| 79 |
+
"sequence_length": 450000
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
For eQTLP, `dna_sequences` contains `DNA_REF` and `DNA_ALT` rather than a single `DNA_1` sequence. Metadata contain provenance fields such as chromosome, gene ID, tissue/cell type, genomic distance, alleles, and masking statistics where available. The user message never contains the target label.
|
| 85 |
+
|
| 86 |
+
## Sequence construction
|
| 87 |
+
|
| 88 |
+
The conversion mirrors the official DNALongBench EPI/eQTL dataset loaders:
|
| 89 |
+
|
| 90 |
+
- ETGP uses a gene TSS window (+/- 3 kb) and enhancer-region window (+/- 500 bp), then takes the genomic interval spanning both.
|
| 91 |
+
- eQTLP follows the same long-context construction and creates reference/alternate sequence pairs from the two alleles.
|
| 92 |
+
- Intermediate blacklist regions are masked with `N`; sequences shorter than 450 kb are padded with `N`, while longer contexts are truncated to 450 kb.
|
| 93 |
+
- Cross-chromosome and over-distance eQTL records are excluded consistently with the official loading logic. The resulting eQTLP conversion skipped 67 records.
|
| 94 |
+
- When genomic orientation is reversed relative to gene direction, the sequence is reverse complemented.
|
| 95 |
+
|
| 96 |
+
The 450 kb context is a benchmark design choice: it makes input length fixed for fair long-context comparison and allows models to use distal regulatory evidence. It is not a claim that every base is functional.
|
| 97 |
+
|
| 98 |
+
## Loading example
|
| 99 |
+
|
| 100 |
+
```python
|
| 101 |
+
import gzip
|
| 102 |
+
import json
|
| 103 |
+
|
| 104 |
+
path = "etgp_v1/train.jsonl.gz"
|
| 105 |
+
with gzip.open(path, "rt", encoding="utf-8") as handle:
|
| 106 |
+
sample = json.loads(next(handle))
|
| 107 |
+
|
| 108 |
+
print(sample["messages"][0]["content"])
|
| 109 |
+
print(sample["target"])
|
| 110 |
+
print(len(sample["dna_sequences"][0]["sequence"]))
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## Recommended evaluation
|
| 114 |
+
|
| 115 |
+
Use the provided validation/test splits without resampling them. Report at least AUROC and AUPRC; additionally report MCC, accuracy, and threshold-selection protocol. Because text fields may carry useful biological priors, DNA + text results should be compared with the following controls:
|
| 116 |
+
|
| 117 |
+
1. DNA-only.
|
| 118 |
+
2. Text/metadata-only.
|
| 119 |
+
3. DNA + text.
|
| 120 |
+
4. DNA + shuffled metadata.
|
| 121 |
+
|
| 122 |
+
## Provenance and citation
|
| 123 |
+
|
| 124 |
+
Source benchmark: [DNALongBench repository](https://github.com/wenduocheng/DNALongBench) and its associated paper, *DNALongBench: Benchmarking long-context genomic sequence models* ([Nature Communications, 2025](https://www.nature.com/articles/s41467-025-65077-4)).
|
| 125 |
+
|
| 126 |
+
Please cite the DNALongBench paper and the original underlying datasets. Cite this repository as a derived conversion, not as the source of the biological labels or reference sequence.
|
| 127 |
+
|
| 128 |
+
## Limitations
|
| 129 |
+
|
| 130 |
+
- This is a task-format conversion, not a newly curated biological dataset.
|
| 131 |
+
- The natural-language instructions are templated from task metadata; they should not be interpreted as free-form annotations.
|
| 132 |
+
- Large compressed files contain raw DNA strings. Use streaming readers rather than loading all samples into memory.
|
| 133 |
+
- Public redistribution is subject to the terms of the original benchmark, reference genome, and source datasets. Verify compliance before redistribution or publication.
|