File size: 7,997 Bytes
5318e28 8045a54 5318e28 8045a54 5318e28 8045a54 5318e28 8045a54 5318e28 8045a54 5318e28 8045a54 5318e28 8045a54 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | ---
license: mit
---
# ProtEnv: Protein Environment Dataset
Raw protein sequences, labels, and predicted structures for 15 downstream tasks used in ProtCompass benchmarking.
## Dataset Overview
ProtEnv provides the foundational data for evaluating protein encoders across diverse biological tasks. It includes:
- **Raw sequences**: FASTA format protein sequences
- **Labels**: Task-specific annotations (regression/classification)
- **Predicted structures**: ESMFold-generated 3D structures (PDB format)
- **Splits**: Pre-defined train/test splits for reproducibility
## Dataset Structure
```
structure_encoder_data/ # Raw sequences and labels (117GB)
├── contact_prediction/
│ ├── train.fasta
│ ├── test.fasta
│ ├── train_labels.npy
│ └── test_labels.npy
├── secondary_structure/
├── ppi_site/
├── metal_binding/
├── mutation_effect/
├── go_bp/
├── stability/
├── solubility/
├── go_mf/
├── fluorescence/ # Note: "fluorescence" spelling maintained for compatibility
├── ec_classification/
├── subcellular_localization/
├── membrane_soluble/
├── remote_homology/
└── ppi_affinity/
predicted_structures/ # ESMFold structures (5GB compressed)
├── fluorescence.tar.gz # 2.0GB → 444MB uncompressed
├── solubility.tar.gz # 2.6GB → 580MB uncompressed
├── stability.tar.gz # 444MB → 98MB uncompressed
└── ppi_affinity.tar.gz # 49MB → 11MB uncompressed
```
## Task Descriptions
### Protein Function Prediction
- **EC Classification**: Enzyme Commission number prediction (multi-class)
- **GO-BP**: Gene Ontology Biological Process (multi-label)
- **GO-MF**: Gene Ontology Molecular Function (multi-label)
- **Subcellular Localization**: Cellular compartment prediction (multi-class)
### Protein-Protein Interactions
- **PPI Site**: Binding site prediction (binary per-residue)
- **PPI Affinity**: Binding affinity prediction (regression)
### Structure Prediction
- **Contact Prediction**: Residue-residue contact maps (binary per-pair)
- **Secondary Structure**: 3-state or 8-state structure (per-residue)
### Biophysical Properties
- **Stability**: Thermostability prediction (regression)
- **Solubility**: Expression solubility (binary)
- **Fluorescence**: GFP fluorescence intensity (regression)
- **Metal Binding**: Metal ion binding sites (binary per-residue)
- **Membrane/Soluble**: Membrane vs soluble classification (binary)
### Sequence Analysis
- **Remote Homology**: Fold recognition (multi-class)
- **Mutation Effect**: Fitness effect prediction (regression)
## Download Instructions
### Full Dataset
```bash
# Clone the entire repository (122GB)
git lfs install
git clone https://huggingface.co/datasets/Anonymoususer2223/ProtEnv
```
### Specific Tasks
```bash
from huggingface_hub import hf_hub_download
# Download raw sequences for a specific task
train_fasta = hf_hub_download(
repo_id="Anonymoususer2223/ProtEnv",
filename="structure_encoder_data/mutation_effect/train.fasta",
repo_type="dataset"
)
# Download predicted structures
structure_tar = hf_hub_download(
repo_id="Anonymoususer2223/ProtEnv",
filename="predicted_structures/fluorescence.tar.gz",
repo_type="dataset"
)
```
## File Formats
### Sequences
- **Format**: FASTA
- **Headers**: `>protein_id` or `>protein_id|metadata`
- **Sequences**: Standard 20 amino acids
### Labels
- **Format**: NumPy arrays (`.npy`)
- **Regression tasks**: Float arrays
- **Classification tasks**: Integer arrays (class indices)
- **Multi-label tasks**: Binary matrices (N × num_classes)
- **Per-residue tasks**: 2D arrays (N × sequence_length)
### Structures
- **Format**: PDB files (compressed as `.tar.gz`)
- **Source**: ESMFold predictions
- **Quality**: pLDDT scores included in B-factor column
- **Note**: Structures are predictions, not experimental
## Usage Example
```python
import numpy as np
from Bio import SeqIO
from huggingface_hub import hf_hub_download
# Load sequences
fasta_path = hf_hub_download(
repo_id="Anonymoususer2223/ProtEnv",
filename="structure_encoder_data/stability/train.fasta",
repo_type="dataset"
)
sequences = []
ids = []
for record in SeqIO.parse(fasta_path, "fasta"):
sequences.append(str(record.seq))
ids.append(record.id)
# Load labels
labels_path = hf_hub_download(
repo_id="Anonymoususer2223/ProtEnv",
filename="structure_encoder_data/stability/train_labels.npy",
repo_type="dataset"
)
labels = np.load(labels_path)
print(f"Loaded {len(sequences)} proteins")
print(f"First sequence: {sequences[0][:50]}...")
print(f"First label: {labels[0]}")
```
## Dataset Statistics
| Task | Train Size | Test Size | Label Type | Avg Length |
|------|-----------|-----------|------------|------------|
| Contact Prediction | 25,299 | 40 | Binary (L×L) | 256 |
| Secondary Structure | 8,678 | 513 | Multi-class (L) | 208 |
| PPI Site | 15,051 | 1,672 | Binary (L) | 312 |
| Metal Binding | 5,654 | 629 | Binary (L) | 287 |
| Mutation Effect | 3,072 | 342 | Regression | 452 |
| GO-BP | 29,898 | 3,322 | Multi-label (1,943) | 394 |
| Stability | 53,614 | 2,512 | Regression | 178 |
| Solubility | 62,478 | 6,942 | Binary | 224 |
| GO-MF | 29,898 | 3,322 | Multi-label (489) | 394 |
| Fluorescence | 21,446 | 5,362 | Regression | 238 |
| EC Classification | 15,011 | 1,668 | Multi-class (538) | 382 |
| Subcellular Localization | 8,943 | 2,236 | Multi-class (10) | 493 |
| Membrane/Soluble | 3,797 | 423 | Binary | 312 |
| Remote Homology | 12,312 | 736 | Multi-class (1,195) | 209 |
| PPI Affinity | 3,899 | 434 | Regression | 156 |
**Total**: ~500K protein sequences across 15 tasks
## Data Sources
All datasets are curated from public databases:
- **UniProt**: Protein sequences and annotations
- **PDB**: Experimental structures (for validation)
- **CATH/SCOP**: Fold classifications
- **STRING**: Protein-protein interactions
- **Gene Ontology**: Functional annotations
- **Literature**: Experimental measurements (fluorescence, stability, etc.)
## Predicted Structures
Structures are generated using **ESMFold** (Lin et al., 2023) for tasks where experimental structures are unavailable:
- **Fluorescence**: 27,808 structures (GFP variants)
- **Solubility**: 69,420 structures
- **Stability**: 56,126 structures
- **PPI Affinity**: 4,333 structures
These structures enable structure-based encoder evaluation on tasks traditionally limited to sequence-only data.
## Data Splits
All train/test splits are:
- **Pre-defined**: Ensures reproducibility across studies
- **Non-overlapping**: No sequence identity between train/test
- **Stratified**: Balanced label distributions where applicable
- **Temporally split**: For some tasks (e.g., mutation effect)
## Known Issues
1. **Spelling**: "fluorescence" directory uses British spelling for historical compatibility
2. **Structure quality**: ESMFold predictions vary in quality (check pLDDT scores)
3. **Label noise**: Some experimental labels may contain measurement errors
4. **Class imbalance**: Some tasks have imbalanced class distributions
## Citation
If you use ProtEnv, please cite:
```bibtex
@article{protcompass2026,
title={ProtCompass: Interpretable Benchmarking and Task-Aware Evaluation of Protein Encoders},
author={Your Name et al.},
journal={NeurIPS},
year={2026}
}
```
## Related Resources
- **Pre-computed Embeddings**: [ProtCompass_Embeddings on HuggingFace](https://huggingface.co/datasets/Anonymoususer2223/ProtCompass_Embeddings)
- **Code Repository**: [GitHub](https://github.com/yourusername/protcompass)
- **Paper**: [arXiv](https://arxiv.org/abs/xxxx.xxxxx)
## License
MIT License - Free for academic and commercial use
## Contact
For questions, issues, or data requests, please open an issue on the [GitHub repository](https://github.com/yourusername/protcompass).
|