ProtSpace
ProtSpace maps the embedding space of protein language models (pLMs) to reveal relationships that sequence similarity misses. This Python package prepares your data — embed sequences, project to 2D, overlay biological annotations (UniProt, InterPro, AlphaFold/TED, ML predictions), and transfer labels from the nearest neighbour in embedding space (EAT) — then bundles everything into a .parquetbundle you explore interactively at protspace.app, nothing uploaded. Similarity matrices are supported as input too.
- Multiple projections: linear and non-linear dimensionality reduction (PCA, UMAP, t-SNE, and more)
- Automatic annotations: UniProt, InterPro, Taxonomy, TED domains, and Biocentral predictions
- Quality metrics (opt-in): annotation-based cluster-validity + faithfulness (local & global) via
--stats - Annotation transfer (EAT): fill missing annotations from the nearest reference proteins in embedding space via
protspace transfer - Structure viewer: Integrated protein structure visualization
- Export: PNG, PDF, SVG, HTML
🌐 Try Online
ProtSpace web app: Fast 2D explorer optimized for large datasets — drag & drop .parquetbundle files (source)
🚀 Google Colab Notebooks
Note: Use Chrome or Firefox for best experience.
📦 Installation
pip install protspace
🎯 Quick Start
1. Prepare data
# From HDF5 embeddings
protspace prepare -i embeddings.h5 -m pca2,umap2 -o output
# From FASTA (auto-embeds via Biocentral API)
protspace prepare -i sequences.fasta -e prot_t5 -m pca2 -o output
# Multi-model comparison (compare across pLMs)
protspace prepare -i sequences.fasta -e prot_t5,esm2_650m,ankh_base -m pca2,umap2 -o output
# Combine datasets (same embedding name → proteins are unioned)
protspace prepare -i species_a.h5:prot_t5 -i species_b.h5:prot_t5 -m umap2 -o output
2. Explore results
Upload the generated .parquetbundle file at protspace.app/explore.
3. Power-user workflow (individual steps)
protspace embed -i sequences.fasta -e prot_t5 -e esm2_3b -o embeddings/
protspace project -i embeddings/prot_t5.h5 -i embeddings/esm2_3b.h5 -m pca2,umap2 -o projections/
protspace annotate -i embeddings/prot_t5.h5 -a default -o annotations.parquet
protspace stats -i embeddings/prot_t5.h5 -p projections/ -o statistics.parquet # optional: quality metrics
protspace bundle -p projections/ -a annotations.parquet -s statistics.parquet -o output.parquetbundle
protspace transfer -b output.parquetbundle -e embeddings/prot_t5.h5 -t superfamily -o transferred.parquetbundle # optional: fill gaps via EAT
Or compute quality metrics inline during prepare with --stats (opt-in): annotation-based cluster-validity + faithfulness per projection. See the CLI Reference.
Fill missing annotation values from the nearest annotated protein in embedding space with protspace transfer — Embedding Annotation Transfer (EAT).
📊 Example Output
✨ Annotations
Use -a to color-code proteins by UniProt, InterPro, Taxonomy, TED domain, and Biocentral prediction annotations. Groups (default, all, uniprot, interpro, taxonomy, ted, biocentral) and individual names can be mixed freely. If -a is omitted, the default group is used.
protspace prepare -i data.h5 -m pca2 # default annotations
protspace prepare -i data.h5 -a default,interpro,kingdom -m pca2 # mix groups + individual
📖 Documentation
- Annotation Reference — full list of annotations, groups, data sources, output formats
- Annotation Styling — custom colors, shapes, sort modes, and the
--generate-templateworkflow - CLI Reference — command options, method parameters, file formats
📝 Citation
If you use ProtSpace, please cite the web application preprint (latest):
Senoner T, Vahidi P, Olenyi T, Senoner F, Sisman G, Kahl E, Rost B, Koludarov I. ProtSpace: Protein Universe in Your Browser. bioRxiv, 2026. doi:10.64898/2026.05.04.722720
The original, peer-reviewed ProtSpace publication:
Senoner T, Olenyi T, Heinzinger M, Spannagl A, Bouras G, Rost B, Koludarov I. ProtSpace: A Tool for Visualizing Protein Space. Journal of Molecular Biology, 437(15), 168940, 2025. doi:10.1016/j.jmb.2025.168940
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file protspace-4.11.0.tar.gz.
File metadata
- Download URL: protspace-4.11.0.tar.gz
- Upload date:
- Size: 13.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a9cd8b3f3f110f86703b82fdc97e8f247c74dc27eba5e17f3416b6bbfa62ce
|
|
| MD5 |
16836b29e992410f33866aa6798c7b0e
|
|
| BLAKE2b-256 |
8c01eb6216b2410443124bb7841dcb41f3a031ed7cde6ce29b354fe6b2125fed
|
Provenance
The following attestation bundles were made for protspace-4.11.0.tar.gz:
Publisher:
protspace-publish.yml on tsenoner/protspace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
protspace-4.11.0.tar.gz -
Subject digest:
57a9cd8b3f3f110f86703b82fdc97e8f247c74dc27eba5e17f3416b6bbfa62ce - Sigstore transparency entry: 2420679839
- Sigstore integration time:
-
Permalink:
tsenoner/protspace@761a97e6d8295f41cfe5609f83f279116405ea43 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tsenoner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
protspace-publish.yml@761a97e6d8295f41cfe5609f83f279116405ea43 -
Trigger Event:
repository_dispatch
-
Statement type:
File details
Details for the file protspace-4.11.0-py3-none-any.whl.
File metadata
- Download URL: protspace-4.11.0-py3-none-any.whl
- Upload date:
- Size: 767.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bf130c03938c362ac0468392d5f745f03f5f018687f93f06970934b23957bb9
|
|
| MD5 |
b0f48bce1532177d0064583d93f60bca
|
|
| BLAKE2b-256 |
36d094617464e196de0b2a13c34f2f5c674abe480d90222fa1f2312f011d835b
|
Provenance
The following attestation bundles were made for protspace-4.11.0-py3-none-any.whl:
Publisher:
protspace-publish.yml on tsenoner/protspace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
protspace-4.11.0-py3-none-any.whl -
Subject digest:
0bf130c03938c362ac0468392d5f745f03f5f018687f93f06970934b23957bb9 - Sigstore transparency entry: 2420680005
- Sigstore integration time:
-
Permalink:
tsenoner/protspace@761a97e6d8295f41cfe5609f83f279116405ea43 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tsenoner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
protspace-publish.yml@761a97e6d8295f41cfe5609f83f279116405ea43 -
Trigger Event:
repository_dispatch
-
Statement type: