The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowInvalid
Message: JSON parse error: Invalid value. in row 0
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 324, in _generate_tables
df = pandas_read_json(f)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1391, in _parse
self.obj = DataFrame(
~~~~~~~~~^
ujson_loads(json, precise_float=self.precise_float), dtype=None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/pandas/core/frame.py", line 782, in __init__
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 114, in arrays_to_mgr
index = _extract_index(arrays)
File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 677, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4523, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2768, in _head
return next(iter(self.iter(batch_size=n)))
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2972, in iter
for key, pa_table in ex_iterable.iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2483, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 327, in _generate_tables
raise e
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
semRfam
The tokenizable multimodal RNA dataset used to train yakRNA Design, a semantic multimodal RNA composer. Every record pairs an RNA sequence with three companion modalities drawn from its Rfam family, which is what lets a model be conditioned on structure, consensus, or function at generation time.
| Source | Rfam 15.0 (released 2024-09) |
| Records | 3,978,586 |
| Families | 4,028 |
| Format | single HDF5 file, one row per sequence |
| Size | ~2.2 GB |
| License | CC0 1.0 (inherited from Rfam) |
Files
| File | Size | Contents |
|---|---|---|
semRfam.h5 |
~2.2 GB | the records: sequence, ss, consensus, go_terms, rfam_id, sequence_id, each a 1-D array of UTF-8 byte strings |
family_lookup.json |
~49 MB | Rfam family → list of row indices, used to build family-diverse batches |
family_splits.json |
~35 MB | the exact family-level train/val/test split used for the released model |
The four modalities
For row i, the four fields are aligned position-by-position (GO terms being per-family rather than per-position):
sequence— the RNA sequence with alignment gaps removed, inA/C/G/U/N.ss— the family's WUSS#=GC SS_consconsensus structure, projected onto the positions this sequence actually occupies.consensus— the family's#=GC RFconsensus line, projected the same way. Case is meaningful (upper = highly conserved).go_terms— comma-separated GO terms attached to the family by Rfam'srfam2gomapping; empty for families with no GO annotation.
Because ss and consensus are projections of the family consensus onto each
sequence, len(sequence) == len(ss) == len(consensus) for every row.
Splits
Splits are by family, so no Rfam family appears in more than one split:
| Split | Families | Sequences |
|---|---|---|
| train | 3,625 | 3,846,938 |
| val | 201 | 57,920 |
| test | 202 | 73,728 |
Note: the released yakRNA checkpoint was trained with
data.use_all_data_for_training: true, meaning the val/test families were also
included in training; the split is published so that held-out evaluation is
reproducible for anyone who wants it. family_splits.json also records the
split seed and the data-processing config.
Usage
git clone https://github.com/YousufAKhan/yakRNA.git && cd yakRNA
pip install -r requirements-training.txt
python data_processing/download_rfam.py --stage prebuilt # downloads this dataset
python rna_gen/rna_gen_training.py --config configs/train_single_gpu.yaml
That places the files where the training configs expect them
(training_data/processed/). See
TRAINING.md for
the objective, the config reference, and how to fine-tune from the released
checkpoint.
Reading it directly:
import h5py
from huggingface_hub import hf_hub_download
path = hf_hub_download("MasterYster/semRfam", "semRfam.h5", repo_type="dataset")
with h5py.File(path) as f:
print(f["rfam_id"][0].decode(), f["sequence"][0].decode())
print(f["ss"][0].decode())
print(f["consensus"][0].decode())
print(f["go_terms"][0].decode())
How it was built
- Rfam 15.0 full-region sequences, per family.
- Each family realigned to its covariance model with Infernal 1.1.4
cmalign --outformat Pfam. - Alignment gaps stripped from each sequence, with
SS_consandRFsliced to the retained positions so all three stay in register. - GO terms joined per family from
rfam2go. - Written to HDF5, one row per sequence.
The pipeline is in the yakRNA repository
(data_processing/download_rfam.py --stage full-all followed by
data_processing/rfam_data_preprocessing.py --stage all). Note that rerunning
it today yields a similar but not identical dataset: Rfam full-region
membership changes between releases and search runs. This dataset is the
snapshot the released model was actually trained on.
Citation
@software{yakrna2026,
author = {Khan, Yousuf},
title = {yakRNA Design: A semantic multimodal RNA composer},
year = {2026},
url = {https://github.com/YousufAKhan/yakRNA}
}
Rfam: Ontiveros-Palacios et al., Rfam 15: RNA families database in 2025, Nucleic Acids Research (2025). Rfam data is released under CC0 1.0.
- Downloads last month
- 54