--- license: other pretty_name: OPLM sequence pretraining data tags: - biology - protein - protein-language-model - uniref task_categories: - fill-mask size_categories: - 1B` | UniRef90 ids of every member, representative first | | `member_sequences` | `list` | their sequences, same order as `member_ids` | deepclust70 (one row per sequence): | column | type | meaning | | --- | --- | --- | | `sequence_id` | `large_string` | sequence id | | `sequence` | `large_string` | sequence | Sequences are raw one-letter amino acids with no special tokens. deepclust70 had terminal stop codons (`*`) removed before clustering; internal `*` were kept (about 1.8% of rows contain one). ## Phase 1 and phase 2 OPLM trains in two phases on the same files: - **Phase 1** reads `sequence_id` and `sequence` only, so it trains on uniref70 representatives. - **Phase 2** sets `sample_members: true` on the uniref70 source. Each served row then yields one member, drawn uniformly within the cluster by a hash of (pass seed, shard, row). Every epoch redraws it. Evaluation uses the representatives in both phases. ## Counts | file | rows (clusters) | member rows | representative residues | member residues | |---|--:|--:|--:|--:| | `uniref70/train/` | 75,718,236 | 121,461,869 | 27,363,613,505 | 45,532,832,579 | | `uniref70/eval_singletons.parquet` | 5,000 | 5,000 | 1,749,551 | 1,749,551 | | `uniref70/eval_gte2.parquet` | 5,000 | 11,119 | 1,973,383 | 4,469,677 | | `uniref70/test_singletons.parquet` | 5,000 | 5,000 | 1,701,713 | 1,701,713 | | `uniref70/test_gte2.parquet` | 5,000 | 11,204 | 1,891,172 | 4,295,018 | | `deepclust70/train/` | 5,353,896,515 | | 710,712,957,639 | | | `deepclust70/eval_singletons.parquet` | 5,000 | | 486,576 | | | `deepclust70/eval_gte2.parquet` | 5,000 | | 887,835 | | | `deepclust70/test_singletons.parquet` | 5,000 | | 488,725 | | | `deepclust70/test_gte2.parquet` | 5,000 | | 877,340 | | uniref70: 121,494,192 UniRef90 sequences in, 75,738,236 clusters out. Members per train cluster: min 1, median 1, mean 1.604, max 2,370; 60,298,749 train clusters are singletons. ## Eval and test Eval and test sets are held out of the whole training mix, not just their own source. Each stratum is a random draw of that source's clusters: singletons, or clusters with 2+ members. Every eval/test sequence is searched with MMseqs2 against deepclust70 `train/` and against every member of every uniref70 train cluster: ``` --min-seq-id 0.7 -c 0.8 --cov-mode 0 -s 1 --max-seqs 100000 -e 1e6 ``` Any hit excludes the example. For uniref70, every member of a held-out cluster is searched, not just the representative. Searching every uniref70 member, not just the representatives, keeps eval and test independent in phase 2, when training samples members. Held-out candidates not used for eval or test are in `train/`, unless they match an eval/test sequence under the same search. deepclust70's are shuffled into the last `train/` shard. ## Rebuild UniRef90 input: `https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.fasta.gz`, release 2026_03 (02-Sep-2026), 121,494,192 clusters, 32,107,879,019 bytes, sha256 `f6fa665e27d14fa3dadcff39df6db0052f125ffcf40ba7806f0863c1f262b8dc`, downloaded 2026-10-30. deepclust70 re-cut (rows and global order unchanged; the sha256 of the `(sequence_id, sequence)` stream is `dbf6da39210da1dbbe1f1e63794d91f0b94debbe30a556ccca56e612220a44a4` before and after): ``` oplm data reshard /train /deepclust70/train --rows-per-shard 1000000 ``` uniref70 (needs `mmseqs` on `PATH`; MMseqs2 18.8cc5c was used). The run was: ``` oplm data uniref70 --uniref90 uniref90.fasta.gz --release 2026_03 \ --deepclust70 /deepclust70/train --workdir --out /uniref70 \ --seed 0 --threads 32 --keep-workdir --min-survival 0.04 ``` All other options were at their defaults (`--pool 250000 --n-eval 5000 --n-test 5000 --rows-per-shard 100000 --n-buckets 512 --chunk-rows 200000000`). The clustering stage had already been run on its own, with the same `easy-linclust` arguments plus `--split-memory-limit 80G`, so the run above picked up its output. To rebuild in one command, add `--mmseqs-extra=--split-memory-limit --mmseqs-extra=80G`. deepclust70 eval/test, then the unused held-out reps back to `train/` (`` holds deepclust70's original held-out representatives): ``` oplm data deepclust70-heldout /deepclust70 \ --deepclust70 /deepclust70/train --uniref70 /uniref70/train \ --workdir --threads 32 oplm data deepclust70-return /deepclust70 \ --uniref70 /uniref70 --workdir --threads 32 --seed 0 ``` Then write the manifest: ``` oplm data manifest ``` ## Versions uniref70 was built with oplm 0.4.1.dev252+ga400dfede. Clustering ran at commit `ea4b33a` (2026-10-30), the eval screen at `e6f331c` and the write at `a400dfe` (2026-11-01). The clustering stage's `summary.json` entry was written by hand from that run's record. The deepclust70 eval/test screen ran at `ed1d75b` (2026-11-02) and the return of unused held-out reps at `fa6d689` (2026-11-04); MMseqs2 18.8cc5c throughout. ## License and attribution The two sources carry different terms, so the dataset as a whole is marked `other`. **uniref70** is derived from UniRef90 (release 2026_03), copyright the UniProt Consortium, distributed under the [Creative Commons Attribution 4.0 (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) license (see ). The uniref70 files are released under CC BY 4.0. **deepclust70** is derived from the [DeepClust](https://github.com/bbuchfink/diamond/wiki/DeepClust-data-files) sequence set (`DeepClustParquet`), a compilation of existing public protein sequence databases. DeepClust states no license of its own; each underlying database keeps its own terms, and users of the deepclust70 files are responsible for following them. Cite UniProt: The UniProt Consortium, *UniProt: the Universal Protein Knowledgebase*, Nucleic Acids Research. Cite DeepClust: Buchfink B, Barbé É, Ashkenazy H, Reuter K, Kennedy JA, Drost HG, *Clustering the protein universe of life using DIAMOND DeepClust*, Nature Methods 23, 724–727 (2026). doi:[10.1038/s41592-026-03030-z](https://doi.org/10.1038/s41592-026-03030-z)