sequence_id stringlengths 15 22 | sequence stringlengths 11 66.2k |
|---|---|
UniRef90_UPI00291D2A0D | MLPFSCTHRDSFSVLAPILPFPGTRPDSTIFQYSHGFYHFPVLTGTVFREYFSVLAPILPFPGIPQGSTIFRFSHGFYHFLVLPGIVFRYSHRFYHFRELARILPFIDTRTDSTIFRYSQGQFFGTRTDSTISGNSAGFYHFSILARILPFSCTHRDSFSVLAPILPFPGTRPDSTIFRYSQRFYHFPVLTWIVFRYSHRFYHFRELARILPFFDTRTDSTIFQYSQGQFFGTRTDSTISGNSAGFYHFSILATILPFSGTHMDSFSVLAPILPFSGTRPGSTIFRFSHGFYHFLVLTGTVFRYSHRFYHFRELARILPF... |
UniRef90_A0ACN6ENM0 | MRPISGNHVGPTRKSRGPHPEITWAPPGNHVGHTRKSRGPHPEITWAPPGNHVGPTGKSRGPPGEITWAPRGNHVGPTRKSRGPHPEITWAPPGNHVGPQGKSRGPHPEITWAPPGNHVGPTRKSRGPHGEITWAPRGNHVGPQGKSRGPPGEITWAPPGNHVGPTRKSRGPPGEITWAPPGNHVGPTRKSRGPHPEITWAPPGNHVGPTGKSRGPPEEITWAPRGNHVGPTRKSRGPHPEITWAPPGNHVGPTRKSRGPHPEITWAPPGNHVGPQGKSRGPPGEITWAPRGNHVGPTRKSRGPHPEITWAPPGNHVGPT... |
UniRef90_A0ACG4HM60 | MIPDALRVFIDIFGGVAPSRDPWTWDLDGVSDLGDRYATAASELTELLPEFNRVIEQTEKWYEGHGGQAAADSLKQLTDGKYSIDHLISAMEAVPEFTSKSNASIVGDRITESIFAAWGVLEFEKLAAELAASAGTAAWFVAAQEALIIAIGRYTFAVARKRMMERLGMAAARMVGERLLLQGLSRMGLQGFENVVHLAFTGIGSGLKLAGIGAGFTAGAQLASGQDLDLAKIGDAALAWGVGGVAGHMAGPAFARGATRIGLGRMAPMTAGFLTGVTTAVAIGALHGQWDMVSLGYMGALGAAGGARGGLAASRHASTG... |
UniRef90_A0A5A9P0L4 | "MEEITQIKKRLSQTVRLEGKEDLLSKKDSITNLKTEEHVSVKKMVISEPKPEKKEDIQLKKKEVVAVAKKEEVLKKEVVVPSKKDEEILPLKKEVPRPP(...TRUNCATED) |
UniRef90_A0ABD1JBH0 | "MCFQQQILKAVENVTQHLLCEGRTNSSLGLEKSRLVQAELGQIIKSTISILVHVNPSQQTSELVAIFAALDTLTPDSLESSDFVEAWVNIRLLPLLPYL(...TRUNCATED) |
UniRef90_A0AB34IYJ6 | "MDEKNVAIDKESVKLYEDGNCVRVSAIDDADRKICTNDKQSAATDGANSKKYATVTDKAELKDRTVEKEIAFKEDANDKECATATDKADAKERSVEKEI(...TRUNCATED) |
UniRef90_A0ABC9HIT3 | "MRIIVDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDYVKDDDDHDDDNEDDDHDDYDDDDDDDDDDDDDDDDDDYDDDDDDDDDDDDDDDDDDDDD(...TRUNCATED) |
UniRef90_A0ACN6ENN8 | "MWAPPGNHVGPTRKSRGPHPKSRGPHPEITWAPPGNHVGPTGKSRGPPGEITWAPRGNHVGPTGKSRGPHPEITWAPPGNHVGPTRKSRGPHPEITWAP(...TRUNCATED) |
UniRef90_A0ABC9HG52 | "MNDDNDDDDDYVDDDDDDDDDDDDDDDDDDDDDDDDDDEHDDDDDDDDDDDDDDDSDDDDDDDDDDDDDDDDDDDDDDDDHVDYDDDDDDDDDDDDDDD(...TRUNCATED) |
UniRef90_A0ABP9R8T0 | "MVLRGLLSVAASLSFGKVLLGAAMLWMAATFISAQFASDSTVSNAAGQDAVQLVAYEQDSDTDADESDWSFSFGGGEQKPTPVSNSGGESVGLDGRMAT(...TRUNCATED) |
uniref90
Hub: brineylab/uniref90, tag v1.0.0
Files
data/00000.parquet … data/00125.parquet: 126 shards holding 125,724,408 rows, one row per UniRef90 entry, in the FASTA's order. Every shard but the last holds exactly 1,000,000 rows (the last 724,408); zstd, row groups of about 100,000 rows. Columns:
sequence_id: the FASTA header's first token, the entry id (UniRef90_A0A5A9P0L4).sequence: the entry's amino acids, its lines after the header joined.
Reading it
from huggingface_hub import snapshot_download
import polars as pl
path = snapshot_download("brineylab/uniref90", repo_type="dataset", revision="v1.0.0")
shard = pl.read_parquet(f"{path}/data/00000.parquet", columns=["sequence_id", "sequence"])
Rows keep the FASTA's order, so a subset of shards is a contiguous slice of the release, not a sample; shuffle yourself for training.
Recipe
Source: UniRef release 2026_04 (published 2026-11-04), CC BY 4.0, pulled 2026-11-11: uniref90.fasta.gz (32,692,271,968 bytes, MD5 9410e1bb6269000a1b1c332854c75322) at https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.fasta.gz, holding the release's 125,724,408 entries. The recipe refuses a download whose size or MD5 differs.
One job in datascience@1.2.0: download the FASTA into <out>/.work/, resuming a partial one by range; then stream it, never holding the whole file in memory, into <out>/data/00000.parquet, 00001.parquet, … in the FASTA's order, shard_rows rows per shard (the last one partial), zstd, row groups of about 100k rows. Stages resume: a rerun keeps the verified FASTA and the shards already written, and a finished build only rereads the footers.
params.toml: release = "2026_04"; the file's url, bytes, and md5; sequences = 125724408, the release's count; shard_rows = 1000000.
The test reads the shards' parquet footers and three sampled row groups, in seconds: the shards are 00000.parquet onward without a gap; the schema is exactly sequence_id and sequence, strings; every shard but the last holds exactly 1,000,000 rows; the total is exactly the release's 125,724,408; and in the samples every sequence_id starts with UniRef90_ and every sequence is uppercase letters only.
Compute
One job, CPU only: 8 CPUs and 32G asked, on bcr's cpu partition. From nothing it takes about 44 min: the download (30.5 GB, one stream from ftp.uniprot.org at about 23 MB/s) 24 min; the MD5 check and the 126 shards 20 min. Peak memory 7.6 GB. Disk: 23.5 GB of shards and 30.5 GB under <out>/.work/, the FASTA all of it, kept so a rerun resumes; the test reads only footers and three row groups, in 7 s.
Gotchas
- The URL serves UniProt's current release only: once 2026_05 is out, the pinned MD5 refuses it, and a rebuild is a new version.
- The FASTA header's other fields (
n=,Tax=,TaxID=,RepID=) are dropped; cluster sizes and taxonomy are in UniRef's XML, not here.
- Downloads last month
- 110