Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
sample_id: string
benchmark: string
task_name: string
split: string
question: string
answer: string
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
dna_sequences: list<item: struct<placeholder: string, role: string, sequence: string, length: int64>>
child 0, item: struct<placeholder: string, role: string, sequence: string, length: int64>
child 0, placeholder: string
child 1, role: string
child 2, sequence: string
child 3, length: int64
target: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
input: string
output: string
meta: struct<template_id: string, chromosome: string, distance_bp: int64, sequence_start: int64, sequence_ (... 248 chars omitted)
child 0, template_id: string
child 1, chromosome: string
child 2, distance_bp: int64
child 3, sequence_start: int64
child 4, sequence_end: int64
child 5, masked_bp: int64
child 6, reverse_complemented: bool
child 7, cell_type: string
child 8, genome_build: string
child 9, gene_id: string
child 10, region_id: string
child 11, gene_strand: string
child 12, source_dataset: string
child 13, source_file: string
child 14, original_label: string
child 15, sequence_length: int64
dna_sequence: string
to
{'sample_id': Value('string'), 'benchmark': Value('string'), 'task_name': Value('string'), 'split': Value('string'), 'question': Value('string'), 'answer': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')}), 'dna_sequences': List({'placeholder': Value('string'), 'role': Value('string'), 'sequence': Value('string'), 'length': Value('int64')}), 'target': {'type': Value('string'), 'value': Value('int64')}, 'input': Value('string'), 'output': Value('string'), 'meta': {'template_id': Value('string'), 'chromosome': Value('string'), 'distance_bp': Value('int64'), 'sequence_start': Value('int64'), 'sequence_end': Value('int64'), 'masked_bp': Value('int64'), 'reverse_complemented': Value('bool'), 'tissue': Value('string'), 'gene_id': Value('string'), 'allele1': Value('string'), 'allele2': Value('string'), 'tissue_id': Value('string'), 'genome_build': Value('string'), 'region_id': Value('string'), 'gene_strand': Value('string'), 'source_file': Value('string'), 'original_label': Value('string'), 'sequence_length': Value('int64')}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
sample_id: string
benchmark: string
task_name: string
split: string
question: string
answer: string
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
dna_sequences: list<item: struct<placeholder: string, role: string, sequence: string, length: int64>>
child 0, item: struct<placeholder: string, role: string, sequence: string, length: int64>
child 0, placeholder: string
child 1, role: string
child 2, sequence: string
child 3, length: int64
target: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
input: string
output: string
meta: struct<template_id: string, chromosome: string, distance_bp: int64, sequence_start: int64, sequence_ (... 248 chars omitted)
child 0, template_id: string
child 1, chromosome: string
child 2, distance_bp: int64
child 3, sequence_start: int64
child 4, sequence_end: int64
child 5, masked_bp: int64
child 6, reverse_complemented: bool
child 7, cell_type: string
child 8, genome_build: string
child 9, gene_id: string
child 10, region_id: string
child 11, gene_strand: string
child 12, source_dataset: string
child 13, source_file: string
child 14, original_label: string
child 15, sequence_length: int64
dna_sequence: string
to
{'sample_id': Value('string'), 'benchmark': Value('string'), 'task_name': Value('string'), 'split': Value('string'), 'question': Value('string'), 'answer': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')}), 'dna_sequences': List({'placeholder': Value('string'), 'role': Value('string'), 'sequence': Value('string'), 'length': Value('int64')}), 'target': {'type': Value('string'), 'value': Value('int64')}, 'input': Value('string'), 'output': Value('string'), 'meta': {'template_id': Value('string'), 'chromosome': Value('string'), 'distance_bp': Value('int64'), 'sequence_start': Value('int64'), 'sequence_end': Value('int64'), 'masked_bp': Value('int64'), 'reverse_complemented': Value('bool'), 'tissue': Value('string'), 'gene_id': Value('string'), 'allele1': Value('string'), 'allele2': Value('string'), 'tissue_id': Value('string'), 'genome_build': Value('string'), 'region_id': Value('string'), 'gene_strand': Value('string'), 'source_file': Value('string'), 'original_label': Value('string'), 'sequence_length': Value('int64')}}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
sample_id string | benchmark string | task_name string | split string | question string | answer string | messages list | dna_sequences list | target dict | input string | output string | meta dict |
|---|---|---|---|---|---|---|---|---|---|---|---|
dnalongbench_eqtlp_adipose_subcutaneous_train_0000001 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"GCAAACAGCTAGTGGGACAATTCTCTAAGTATTTTAATAAT(...TRUNCATED) | {
"type": "binary",
"value": 1
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | {"template_id":"eqtlp_train_01","chromosome":"chr19","distance_bp":3457,"sequence_start":17930016,"s(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000002 | dnalongbench | eqtlp | train | "For Adipose Subcutaneous, determine whether the G>A change represented by <DNA_REF> and <DNA_ALT> i(...TRUNCATED) | No | [{"role":"user","content":"For Adipose Subcutaneous, determine whether the G>A change represented by(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"GCAAACAGCTAGTGGGACAATTCTCTAAGTATTTTAATAAT(...TRUNCATED) | {
"type": "binary",
"value": 0
} | "For Adipose Subcutaneous, determine whether the G>A change represented by <DNA_REF> and <DNA_ALT> i(...TRUNCATED) | No | {"template_id":"eqtlp_train_02","chromosome":"chr19","distance_bp":457,"sequence_start":17930016,"se(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000006 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"AGAGTCCCTGGGCTCTGACCCCACGAGCTCTCCAAGGACCC(...TRUNCATED) | {
"type": "binary",
"value": 1
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | {"template_id":"eqtlp_train_01","chromosome":"chr16","distance_bp":13185,"sequence_start":1330601,"s(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000008 | dnalongbench | eqtlp | train | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | [{"role":"user","content":"In Adipose Subcutaneous, compare reference sequence <DNA_REF> with altern(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"GGGGGTTCAGGGTCACCAGCCCCAAGCTATACCCACACCAG(...TRUNCATED) | {
"type": "binary",
"value": 0
} | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | {"template_id":"eqtlp_train_00","chromosome":"chr16","distance_bp":10368,"sequence_start":1318748,"s(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000010 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"CTGGCTATTGCTAGCAAAGAGGCTCTTCACAGAAGTGGCTG(...TRUNCATED) | {
"type": "binary",
"value": 1
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | {"template_id":"eqtlp_train_01","chromosome":"chr1","distance_bp":35102,"sequence_start":1688720,"se(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000013 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | No | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"TCCCAGTGGAACCTCCGTGCTTCCAAGTGCAGAGTGGAAGC(...TRUNCATED) | {
"type": "binary",
"value": 0
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | No | {"template_id":"eqtlp_train_01","chromosome":"chr1","distance_bp":56534,"sequence_start":1715045,"se(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000015 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"CAGCTCCTGACTTAGTCGTTCTTGGTCTAACTTAAATATCA(...TRUNCATED) | {
"type": "binary",
"value": 1
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | {"template_id":"eqtlp_train_01","chromosome":"chr12","distance_bp":277,"sequence_start":6307436,"seq(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000017 | dnalongbench | eqtlp | train | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | [{"role":"user","content":"In Adipose Subcutaneous, compare reference sequence <DNA_REF> with altern(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"CAGCTCCTGACTTAGTCGTTCTTGGTCTAACTTAAATATCA(...TRUNCATED) | {
"type": "binary",
"value": 0
} | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | {"template_id":"eqtlp_train_00","chromosome":"chr12","distance_bp":30,"sequence_start":6307436,"sequ(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000020 | dnalongbench | eqtlp | train | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | [{"role":"user","content":"Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this v(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"AGAGCTTCCTGGTTGGTGAACCCGGGTGCATTCGTGTGCCA(...TRUNCATED) | {
"type": "binary",
"value": 1
} | "Given <DNA_REF> and its alternative-allele version <DNA_ALT>, does this variant affect expression o(...TRUNCATED) | Yes | {"template_id":"eqtlp_train_01","chromosome":"chr19","distance_bp":9690,"sequence_start":54950130,"s(...TRUNCATED) |
dnalongbench_eqtlp_adipose_subcutaneous_train_0000023 | dnalongbench | eqtlp | train | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | [{"role":"user","content":"In Adipose Subcutaneous, compare reference sequence <DNA_REF> with altern(...TRUNCATED) | [{"placeholder":"<DNA_REF>","role":"reference","sequence":"CTCTCCCTCTGTTGCCCAGGCTGGAGTGCAGTTGCGAGATC(...TRUNCATED) | {
"type": "binary",
"value": 0
} | "In Adipose Subcutaneous, compare reference sequence <DNA_REF> with alternative sequence <DNA_ALT>. (...TRUNCATED) | No | {"template_id":"eqtlp_train_00","chromosome":"chr19","distance_bp":6093,"sequence_start":54879841,"s(...TRUNCATED) |
DNALongBench ChatNT-Style v1
This repository contains a derived, ChatNT-style serialization of two long-range binary classification tasks from 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.
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.
Contents
etgp_v1/
train.jsonl.gz
valid.jsonl.gz
test.jsonl.gz
manifest.json
eqtlp_v1/
train.jsonl.gz
valid.jsonl.gz
test.jsonl.gz
manifest.json
All JSONL files are gzip-compressed. Each sample has a fixed 450,000 bp DNA context.
| Task | Train | Validation | Test | Positive labels in test |
|---|---|---|---|---|
| ETGP | 2,066 | 266 | 270 | 10 |
| eQTLP | 20,364 | 6,554 | 4,297 | 190 |
The official DNALongBench splits are preserved. Both tasks are strongly imbalanced, so AUROC should be accompanied by AUPRC and class-aware metrics.
Tasks
ETGP: enhancer-target gene prediction
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).
eQTLP: eQTL prediction
Given matched 450 kb reference and alternate allele contexts plus tissue and gene metadata, predict whether the variant is an eQTL (Yes or No).
Data format
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.
{
"id": "dnalongbench_etgp_k562_test_0000022",
"messages": [
{
"role": "user",
"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."
},
{"role": "assistant", "content": "No"}
],
"dna_sequences": [
{"name": "DNA_1", "role": "genomic_context", "sequence": "ACGT..."}
],
"target": "No",
"meta": {
"task_name": "etgp",
"split": "test",
"label": 0,
"sequence_length": 450000
}
}
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.
Sequence construction
The conversion mirrors the official DNALongBench EPI/eQTL dataset loaders:
- ETGP uses a gene TSS window (+/- 3 kb) and enhancer-region window (+/- 500 bp), then takes the genomic interval spanning both.
- eQTLP follows the same long-context construction and creates reference/alternate sequence pairs from the two alleles.
- Intermediate blacklist regions are masked with
N; sequences shorter than 450 kb are padded withN, while longer contexts are truncated to 450 kb. - Cross-chromosome and over-distance eQTL records are excluded consistently with the official loading logic. The resulting eQTLP conversion skipped 67 records.
- When genomic orientation is reversed relative to gene direction, the sequence is reverse complemented.
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.
Loading example
import gzip
import json
path = "etgp_v1/train.jsonl.gz"
with gzip.open(path, "rt", encoding="utf-8") as handle:
sample = json.loads(next(handle))
print(sample["messages"][0]["content"])
print(sample["target"])
print(len(sample["dna_sequences"][0]["sequence"]))
Recommended evaluation
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:
- DNA-only.
- Text/metadata-only.
- DNA + text.
- DNA + shuffled metadata.
Provenance and citation
Source benchmark: DNALongBench repository and its associated paper, DNALongBench: Benchmarking long-context genomic sequence models (Nature Communications, 2025).
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.
Limitations
- This is a task-format conversion, not a newly curated biological dataset.
- The natural-language instructions are templated from task metadata; they should not be interpreted as free-form annotations.
- Large compressed files contain raw DNA strings. Use streaming readers rather than loading all samples into memory.
- Public redistribution is subject to the terms of the original benchmark, reference genome, and source datasets. Verify compliance before redistribution or publication.
- Downloads last month
- 29