Anonymous Researcher commited on
Commit Β·
a4845c4
1
Parent(s): b68e2a2
update readme
Browse files
README.md
CHANGED
|
@@ -1,105 +1,176 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
| 4 |
-
|
| 5 |
-
# ProtCompass Embeddings
|
| 6 |
-
|
| 7 |
-
Pre-computed protein embeddings from 70+ encoders across
|
| 8 |
-
|
| 9 |
-
## Dataset Structure
|
| 10 |
-
|
| 11 |
-
```
|
| 12 |
-
embeddings/
|
| 13 |
-
βββ
|
| 14 |
-
βββ
|
| 15 |
-
βββ
|
| 16 |
-
|
| 17 |
-
βββ
|
| 18 |
-
βββ
|
| 19 |
-
βββ metal_binding/
|
| 20 |
-
βββ
|
| 21 |
-
βββ
|
| 22 |
-
βββ
|
| 23 |
-
βββ
|
| 24 |
-
βββ
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
#
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
#
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
#
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
#
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
-
|
| 82 |
-
-
|
| 83 |
-
-
|
| 84 |
-
-
|
| 85 |
-
|
| 86 |
-
##
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# ProtCompass Embeddings
|
| 6 |
+
|
| 7 |
+
Pre-computed protein embeddings from 70+ encoders across 15 downstream tasks, plus probing results and evaluation outputs.
|
| 8 |
+
|
| 9 |
+
## Dataset Structure
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
embeddings/ # Compressed embeddings (~150GB)
|
| 13 |
+
βββ contact_prediction/ # Per-encoder compressed (300GB β ~60GB)
|
| 14 |
+
β βββ esm2.tar.gz
|
| 15 |
+
β βββ gearnet.tar.gz
|
| 16 |
+
β βββ ... (36 encoders)
|
| 17 |
+
βββ secondary_structure/ # Per-encoder compressed (129GB β ~30GB)
|
| 18 |
+
βββ ppi_site/ # Per-encoder compressed (80GB β ~20GB)
|
| 19 |
+
βββ metal_binding/ # Per-encoder compressed (41GB β ~10GB)
|
| 20 |
+
βββ mutation_effect.tar.gz # Per-task compressed (27GB β ~7GB)
|
| 21 |
+
βββ go_bp.tar.gz # Per-task compressed (7.9GB β ~2GB)
|
| 22 |
+
βββ stability.tar.gz # Per-task compressed (4.1GB β ~1GB)
|
| 23 |
+
βββ solubility.tar.gz # Per-task compressed (3.6GB β ~900MB)
|
| 24 |
+
βββ go_mf.tar.gz # Per-task compressed (3.1GB β ~800MB)
|
| 25 |
+
βββ fluorescence.tar.gz # Per-task compressed (3.0GB β ~800MB)
|
| 26 |
+
βββ ec_classification.tar.gz # Per-task compressed (1.9GB β ~500MB)
|
| 27 |
+
βββ subcellular_localization.tar.gz # Per-task compressed (1.4GB β ~400MB)
|
| 28 |
+
βββ membrane_soluble.tar.gz # Per-task compressed (1.4GB β ~400MB)
|
| 29 |
+
βββ remote_homology.tar.gz # Per-task compressed (805MB β ~200MB)
|
| 30 |
+
βββ ppi_affinity.tar.gz # Per-task compressed (169MB β ~50MB)
|
| 31 |
+
|
| 32 |
+
probing_IF/ # Probing results (2.8GB)
|
| 33 |
+
βββ probing_embeddings/ # Invariant family embeddings (12 encoders)
|
| 34 |
+
βββ probing_results_architecture_full/ # Full probing results (195 files)
|
| 35 |
+
|
| 36 |
+
results/ # Evaluation results (6.9MB)
|
| 37 |
+
βββ {encoder}/{task}/ # Per-encoder, per-task results
|
| 38 |
+
|
| 39 |
+
outputs/ # Analysis outputs (12MB)
|
| 40 |
+
βββ alignment_analysis/ # Alignment analysis figures
|
| 41 |
+
βββ paper_figures_v12/ # Final paper figures
|
| 42 |
+
βββ uncertainty_appendix/ # Uncertainty analysis
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Decompression Instructions
|
| 46 |
+
|
| 47 |
+
All embeddings are compressed with gzip. Decompress before use:
|
| 48 |
+
|
| 49 |
+
### Large Tasks (per-encoder compression)
|
| 50 |
+
For `contact_prediction`, `secondary_structure`, `ppi_site`, `metal_binding`:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
# Decompress all encoders in a task
|
| 54 |
+
cd embeddings/contact_prediction/
|
| 55 |
+
for f in *.tar.gz; do tar -xzf "$f"; done
|
| 56 |
+
|
| 57 |
+
# Or decompress specific encoder
|
| 58 |
+
tar -xzf esm2.tar.gz
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### Medium/Small Tasks (per-task compression)
|
| 62 |
+
For all other tasks:
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
# Decompress entire task
|
| 66 |
+
cd embeddings/
|
| 67 |
+
tar -xzf mutation_effect.tar.gz
|
| 68 |
+
tar -xzf secondary_structure.tar.gz
|
| 69 |
+
# etc.
|
| 70 |
+
|
| 71 |
+
# Or decompress all tasks at once
|
| 72 |
+
for f in *.tar.gz; do tar -xzf "$f"; done
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## File Format
|
| 76 |
+
|
| 77 |
+
After decompression, each encoder directory contains:
|
| 78 |
+
- `train_embeddings.npy`: Training set embeddings (N Γ D)
|
| 79 |
+
- `test_embeddings.npy`: Test set embeddings (M Γ D)
|
| 80 |
+
- `train_labels.npy`: Training labels
|
| 81 |
+
- `test_labels.npy`: Test labels
|
| 82 |
+
- `train_ids.txt`: Protein IDs for training set
|
| 83 |
+
- `test_ids.txt`: Protein IDs for test set
|
| 84 |
+
- `meta.json`: Metadata (encoder name, dimensions, dataset info)
|
| 85 |
+
|
| 86 |
+
## Usage
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
import numpy as np
|
| 90 |
+
from huggingface_hub import hf_hub_download
|
| 91 |
+
import tarfile
|
| 92 |
+
|
| 93 |
+
# Download and decompress embeddings
|
| 94 |
+
tar_path = hf_hub_download(
|
| 95 |
+
repo_id="Anonymoususer2223/ProtCompass_Embeddings",
|
| 96 |
+
filename="embeddings/mutation_effect.tar.gz",
|
| 97 |
+
repo_type="dataset"
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
+
# Extract
|
| 101 |
+
with tarfile.open(tar_path, 'r:gz') as tar:
|
| 102 |
+
tar.extractall(path="./embeddings/")
|
| 103 |
+
|
| 104 |
+
# Load embeddings
|
| 105 |
+
train_emb = np.load("embeddings/mutation_effect/esm2/train_embeddings.npy")
|
| 106 |
+
test_emb = np.load("embeddings/mutation_effect/esm2/test_embeddings.npy")
|
| 107 |
+
train_labels = np.load("embeddings/mutation_effect/esm2/train_labels.npy")
|
| 108 |
+
test_labels = np.load("embeddings/mutation_effect/esm2/test_labels.npy")
|
| 109 |
+
|
| 110 |
+
# Use for downstream tasks
|
| 111 |
+
from sklearn.linear_model import Ridge
|
| 112 |
+
model = Ridge()
|
| 113 |
+
model.fit(train_emb, train_labels)
|
| 114 |
+
score = model.score(test_emb, test_labels)
|
| 115 |
+
print(f"Test RΒ²: {score:.3f}")
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
## Encoders Included
|
| 119 |
+
|
| 120 |
+
### Sequence Encoders (8)
|
| 121 |
+
ESM2 (650M, 150M, 35M), ESM1b, ESM3, ProtTrans, ProstT5, ProteinBERT-BFD, Ankh
|
| 122 |
+
|
| 123 |
+
### Structure Encoders (50+)
|
| 124 |
+
GearNet, GCPNet, EGNN, GVP, IPA, TFN, SchNet, DimeNet, MACE, CDConv, ProteinMPNN, PottsMPNN, dMaSIF, and more
|
| 125 |
+
|
| 126 |
+
### Multimodal Encoders (5)
|
| 127 |
+
SaProt, ESM-IF, FoldVision
|
| 128 |
+
|
| 129 |
+
### Baselines (5)
|
| 130 |
+
Random, Length, Torsion, One-hot, BLOSUM
|
| 131 |
+
|
| 132 |
+
## Dataset Statistics
|
| 133 |
+
|
| 134 |
+
- **Compressed size**: ~150GB
|
| 135 |
+
- **Uncompressed size**: ~600GB
|
| 136 |
+
- **Total encoders**: 70+
|
| 137 |
+
- **Total tasks**: 15
|
| 138 |
+
- **Total proteins**: ~500K across all tasks
|
| 139 |
+
- **Compression ratio**: ~4x (gzip)
|
| 140 |
+
|
| 141 |
+
## Compression Details
|
| 142 |
+
|
| 143 |
+
- **Large tasks** (>30GB): Per-encoder compression for flexibility
|
| 144 |
+
- Users can download only specific encoders
|
| 145 |
+
- Enables parallel decompression
|
| 146 |
+
|
| 147 |
+
- **Medium/Small tasks** (<30GB): Per-task compression
|
| 148 |
+
- Single archive per task
|
| 149 |
+
- Faster download for complete task data
|
| 150 |
+
|
| 151 |
+
## Citation
|
| 152 |
+
|
| 153 |
+
If you use these embeddings, please cite:
|
| 154 |
+
|
| 155 |
+
```bibtex
|
| 156 |
+
@article{protcompass2026,
|
| 157 |
+
title={ProtCompass: Interpretable Benchmarking and Task-Aware Evaluation of Protein Encoders},
|
| 158 |
+
author={Your Name et al.},
|
| 159 |
+
journal={NeurIPS},
|
| 160 |
+
year={2026}
|
| 161 |
+
}
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
## Related Resources
|
| 165 |
+
|
| 166 |
+
- **Code Repository**: [GitHub](https://github.com/yourusername/protcompass)
|
| 167 |
+
- **Raw Datasets**: [ProtEnv on HuggingFace](https://huggingface.co/datasets/Anonymoususer2223/ProtEnv)
|
| 168 |
+
- **Paper**: [arXiv](https://arxiv.org/abs/xxxx.xxxxx)
|
| 169 |
+
|
| 170 |
+
## License
|
| 171 |
+
|
| 172 |
+
MIT License
|
| 173 |
+
|
| 174 |
+
## Contact
|
| 175 |
+
|
| 176 |
+
For questions or issues, please open an issue on the [GitHub repository](https://github.com/yourusername/protcompass).
|