Datasets:
Download README.md from hazemessam/subcellular-localization: direct link, hf CLI and curl.
- Browser
- Download file 5.48 kB
-
https://huggingface.co/datasets/hazemessam/subcellular-localization/resolve/main/README.md
- Command line
-
hf download hf://datasets/hazemessam/subcellular-localization/README.md
-
curl -L -o README.md https://huggingface.co/datasets/hazemessam/subcellular-localization/resolve/main/README.md
pretty_name: PEER Subcellular Localization
license: apache-2.0
tags:
- biology
- proteins
- protein-language-models
- subcellular-localization
- classification
- peer
- deeploc
size_categories:
- 10K<n<100K
configs:
- config_name: default
default: true
data_files:
- split: train
path: train.csv
- split: validation
path: validation.csv
- split: test
path: test.csv
PEER Subcellular Localization
Proteins labelled with where in the cell they are found, as one of 10 locations. This is the subcellular localization task of PEER (Xu et al., 2022), exported from PEER's original files without changes to any value. PEER built it from DeepLoc 1.0 (Almagro Armenteros et al., 2017); for DeepLoc 1.0 exactly as its authors distribute it, see hazemessam/deeploc-1.0.
The task: given a protein's sequence (primary), predict its localization (10-class classification).
Quick start
from datasets import load_dataset
default = load_dataset("hazemessam/subcellular-localization", "default")
print(default["train"][0])
Files and splits
| split | file | proteins | sequence length (residues) |
|---|---|---|---|
| train | train.csv |
8,420 | 40 to 1,000 (median 423) |
| validation | validation.csv |
2,811 | 40 to 1,000 (median 411) |
| test | test.csv |
2,773 | 40 to 1,000 (median 428) |
Compared with DeepLoc 1.0 (checked by matching sequences):
testis exactly DeepLoc 1.0's test set, andtrain+validationis exactly its training set.- The 1,386 proteins longer than 1,000 residues are cropped to their first 500 and last 500 residues, so no sequence here is longer than 1,000.
Labels
PEER stores localization as an integer. Matching the 12,618 uncropped
sequences to their DeepLoc 1.0 records gives this mapping, with no exceptions (DeepLoc's Cytoplasm-Nucleus proteins are
labelled 1):
localization |
DeepLoc 1.0 location | train | validation | test |
|---|---|---|---|---|
0 |
Cell.membrane |
800 | 267 | 273 |
1 |
Cytoplasm |
1,635 | 545 | 508 |
2 |
Endoplasmic.reticulum |
516 | 173 | 173 |
3 |
Golgi.apparatus |
214 | 72 | 70 |
4 |
Lysosome/Vacuole |
192 | 65 | 64 |
5 |
Mitochondrion |
906 | 302 | 302 |
6 |
Nucleus |
2,426 | 809 | 808 |
7 |
Peroxisome |
93 | 31 | 30 |
8 |
Plastid |
453 | 152 | 152 |
9 |
Extracellular |
1,185 | 395 | 393 |
Columns
| column | type | role | meaning |
|---|---|---|---|
primary |
string | input | amino-acid sequence, one letter per residue |
localization |
int | label | location, 0 to 9 (table above) |
Verification
Checked on 2026-11-13 against the original source. SHA-256 of each file in this repo:
| file | SHA-256 | check against source |
|---|---|---|
train.csv |
53a683c631b06ae0938eb7121a92688c27f17949fc4e205d81ae77e5c30e9621 |
CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
validation.csv |
4bc0715c81e8784d2bd0cc70832f56b6de5732055936a2a18d364d8c41a658b4 |
CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
test.csv |
e160c257f338f99d00c7bed32487e9e617fdf5670bf09ebfef26f7ab7107ef5d |
CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
original/subcellular_localization.tar.gz |
8c3cf116b7e82779a7cd6b280cf50d8d69d826ef88667ed3a29fda5751184a66 |
CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
Source, license and citation
From the PEER benchmark (Xu et al., NeurIPS Datasets and Benchmarks 2022), as distributed by torchdrug
(https://github.com/DeepGraphLearning/PEER_Benchmark). original/subcellular_localization.tar.gz is PEER's archive exactly as torchdrug downloads it from https://miladeepgraphlearningproteindata.s3.us-east-2.amazonaws.com/ (MD5 37cb6138b8d4603512530458b7c8a77d, the checksum torchdrug pins). It holds LMDB databases whose values are Python pickles: unpickle them only if you trust the source. PEER's repository is licensed
Apache-2.0; PEER's paper lists the original source of each task. Also cite DeepLoc 1.0. Please cite PEER:
@article{xu2022peer,
title = {PEER: A Comprehensive and Multi-Task Benchmark for Protein Sequence Understanding},
author = {Xu, Minghao and Zhang, Zuobai and Lu, Jiarui and Zhu, Zhaocheng and Zhang, Yangtian and Ma, Chang and Liu, Runcheng and Tang, Jian},
journal = {arXiv preprint arXiv:2206.02096},
year = {2022}
}
@article{almagro2017deeploc,
title = {DeepLoc: prediction of protein subcellular localization using deep learning},
author = {Almagro Armenteros, Jos{\'e} Juan and S{\o}nderby, Casper Kaae and S{\o}nderby, S{\o}ren Kaae and Nielsen, Henrik and Winther, Ole},
journal = {Bioinformatics},
volume = {33},
number = {21},
pages = {3387--3395},
year = {2017},
doi = {10.1093/bioinformatics/btx431}
}
Changes
Before this update (revision ffa35fb), the CSVs here had conversion errors; the values themselves were correct:
- rows were in LMDB key order compared as text (0, 1, 10, 100, …) instead of PEER's order 0, 1, 2, …;
The CSVs were rebuilt from PEER's original archive (now included under
original/).