Dataset Viewer
Auto-converted to Parquet Duplicate
pdb_id
large_stringlengths
4
4
chain_id
large_stringclasses
39 values
res_seq
int32
-162
5.54k
res_name
large_stringclasses
31 values
atom_name
large_stringclasses
164 values
element
large_stringclasses
9 values
x
float32
-244.85
536
y
float32
-505.75
497
z
float32
-490.32
718
occupancy
float32
-0.56
1.6
b_factor
float32
-4.13
1,000
is_ca
bool
2 classes
4EES
A
387
ILE
N
N
-8.455
-18.742001
12.723
1
47.73
false
4EES
A
387
ILE
CA
C
-9.677
-18.205999
12.042
1
48.580002
true
4EES
A
387
ILE
C
C
-9.641
-16.665001
11.778
1
48.59
false
4EES
A
387
ILE
O
O
-10.184
-16.202999
10.765
1
49.150002
false
4EES
A
387
ILE
CB
C
-11.057
-18.709999
12.728
1
48.599998
false
4EES
A
387
ILE
CG1
C
-11.585
-17.735001
13.784
1
48.41
false
4EES
A
387
ILE
CG2
C
-10.942
-20.163
13.289
1
49.279999
false
4EES
A
387
ILE
CD1
C
-12.576
-18.334999
14.774
1
48.220001
false
4EES
A
388
GLU
N
N
-8.971
-15.897
12.661
1
48.209999
false
4EES
A
388
GLU
CA
C
-8.922
-14.398
12.642
1
46.73
true
4EES
A
388
GLU
C
C
-7.913
-13.767
11.663
1
44.630001
false
4EES
A
388
GLU
O
O
-6.712
-13.886
11.847
1
45.060001
false
4EES
A
388
GLU
CB
C
-8.625
-13.879
14.056
1
47.490002
false
4EES
A
388
GLU
CG
C
-9.644
-14.301
15.104
1
49.98
false
4EES
A
388
GLU
CD
C
-9.001
-14.959
16.332001
1
54.720001
false
4EES
A
388
GLU
OE1
O
-8.375
-16.040001
16.181
1
56.830002
false
4EES
A
388
GLU
OE2
O
-9.144
-14.418
17.459999
1
56.119999
false
4EES
A
389
LYS
N
N
-8.396
-13.071
10.642
1
41.810001
false
4EES
A
389
LYS
CA
C
-7.503
-12.555
9.602
1
39.610001
true
4EES
A
389
LYS
C
C
-7.066
-11.083
9.737
1
36.700001
false
4EES
A
389
LYS
O
O
-6.007
-10.722
9.209
1
36.889999
false
4EES
A
389
LYS
CB
C
-8.052
-12.834
8.195
1
40.25
false
4EES
A
389
LYS
CG
C
-9.344
-12.076
7.827
1
43.34
false
4EES
A
389
LYS
CD
C
-9.492
-11.934
6.302
1
47.59
false
4EES
A
389
LYS
CE
C
-10.322
-10.702
5.9
1
48.139999
false
4EES
A
389
LYS
NZ
N
-11.775
-11.019
5.654
1
48.869999
false
4EES
A
390
ASN
N
N
-7.862
-10.24
10.403
1
32.82
false
4EES
A
390
ASN
CA
C
-7.467
-8.846
10.626
1
29.4
true
4EES
A
390
ASN
C
C
-7.093
-8.654
12.084
1
27.33
false
4EES
A
390
ASN
O
O
-7.942
-8.763
12.974
1
27.049999
false
4EES
A
390
ASN
CB
C
-8.6
-7.868
10.296
1
30.23
false
4EES
A
390
ASN
CG
C
-9.224
-8.12
8.93
1
31.190001
false
4EES
A
390
ASN
OD1
O
-8.556
-8.545
7.985
1
32.630001
false
4EES
A
390
ASN
ND2
N
-10.514
-7.839
8.823
1
32.610001
false
4EES
A
391
PHE
N
N
-5.838
-8.393
12.344
1
25.52
false
4EES
A
391
PHE
CA
C
-5.439
-8.166
13.73
1
23.74
true
4EES
A
391
PHE
C
C
-4.112
-7.448
13.827
1
22.200001
false
4EES
A
391
PHE
O
O
-3.29
-7.402
12.872
1
22.25
false
4EES
A
391
PHE
CB
C
-5.361
-9.481
14.517
1
24.92
false
4EES
A
391
PHE
CG
C
-4.237
-10.409
14.077
1
26.66
false
4EES
A
391
PHE
CD1
C
-2.952
-10.323
14.663
1
26.540001
false
4EES
A
391
PHE
CD2
C
-4.468
-11.367
13.082
1
26.110001
false
4EES
A
391
PHE
CE1
C
-1.958
-11.156
14.313
1
27.34
false
4EES
A
391
PHE
CE2
C
-3.469
-12.217
12.706
1
26.700001
false
4EES
A
391
PHE
CZ
C
-2.19
-12.102
13.31
1
28.639999
false
4EES
A
392
VAL
N
N
-3.896
-6.889
15.005
1
21.67
false
4EES
A
392
VAL
CA
C
-2.602
-6.315
15.322
1
20.41
true
4EES
A
392
VAL
C
C
-2.175
-6.856
16.691
1
20.559999
false
4EES
A
392
VAL
O
O
-3.008
-7.334
17.49
1
22.629999
false
4EES
A
392
VAL
CB
C
-2.634
-4.773
15.368
1
21.059999
false
4EES
A
392
VAL
CG1
C
-3.057
-4.166
14.004
1
21.57
false
4EES
A
392
VAL
CG2
C
-3.53
-4.323
16.608
1
17.68
false
4EES
A
393
ILE
N
N
-0.879
-6.794
16.959
1
19.299999
false
4EES
A
393
ILE
CA
C
-0.351
-7.061
18.285999
1
18.32
true
4EES
A
393
ILE
C
C
0.361
-5.788
18.749001
1
18.42
false
4EES
A
393
ILE
O
O
1.139
-5.204
17.986
1
19.5
false
4EES
A
393
ILE
CB
C
0.645
-8.216
18.232
1
19.32
false
4EES
A
393
ILE
CG1
C
-0.051
-9.427
17.601
1
21.65
false
4EES
A
393
ILE
CG2
C
1.249
-8.535
19.629999
1
18.040001
false
4EES
A
393
ILE
CD1
C
0.865
-10.587
17.334
1
25.280001
false
4EES
A
394
THR
N
N
0.097
-5.387
19.997999
1
18.67
false
4EES
A
394
THR
CA
C
0.746
-4.217
20.545
1
18.110001
true
4EES
A
394
THR
C
C
1.658
-4.667
21.702
1
18.6
false
4EES
A
394
THR
O
O
1.421
-5.734
22.334999
1
18.799999
false
4EES
A
394
THR
CB
C
-0.289
-3.142
21.056
1
19.23
false
4EES
A
394
THR
OG1
O
-1.054
-3.681
22.146
1
17.190001
false
4EES
A
394
THR
CG2
C
-1.221
-2.691
19.921
1
17.33
false
4EES
A
395
ASP
N
N
2.627
-3.819
22.039
1
17.299999
false
4EES
A
395
ASP
CA
C
3.491
-4.1
23.177
1
17.799999
true
4EES
A
395
ASP
C
C
3.232
-3.058
24.253
1
17.450001
false
4EES
A
395
ASP
O
O
3.729
-1.933
24.16
1
17.18
false
4EES
A
395
ASP
CB
C
4.937
-3.995
22.709
1
19.690001
false
4EES
A
395
ASP
CG
C
5.907
-4.466
23.76
1
23.790001
false
4EES
A
395
ASP
OD1
O
5.496
-4.657
24.909
1
23.290001
false
4EES
A
395
ASP
OD2
O
7.095
-4.654
23.402
1
26.42
false
4EES
A
396
PRO
N
N
2.481
-3.409
25.285999
1
17.540001
false
4EES
A
396
PRO
CA
C
2.213
-2.424
26.349001
1
19.26
true
4EES
A
396
PRO
C
C
3.412
-2.101
27.214001
1
19.77
false
4EES
A
396
PRO
O
O
3.279
-1.276
28.09
1
20.43
false
4EES
A
396
PRO
CB
C
1.097
-3.069
27.184
1
20.690001
false
4EES
A
396
PRO
CG
C
1.182
-4.5
26.872
1
19.030001
false
4EES
A
396
PRO
CD
C
1.789
-4.691
25.502001
1
19.17
false
4EES
A
397
ARG
N
N
4.545
-2.764
27.004
1
19.65
false
4EES
A
397
ARG
CA
C
5.781
-2.492
27.773001
1
20.440001
true
4EES
A
397
ARG
C
C
6.606
-1.446
27.017
1
19.370001
false
4EES
A
397
ARG
O
O
7.769
-1.137
27.374001
1
19.76
false
4EES
A
397
ARG
CB
C
6.561
-3.811
27.993999
1
21.32
false
4EES
A
397
ARG
CG
C
5.789
-4.949
28.693001
1
22.290001
false
4EES
A
397
ARG
CD
C
6.657
-6.245
28.68
1
26.92
false
4EES
A
397
ARG
NE
N
6.059
-7.385
29.41
1
33.290001
false
4EES
A
397
ARG
CZ
C
6.607
-8.613
29.507999
1
34.52
false
4EES
A
397
ARG
NH1
N
7.776
-8.856
28.916
1
38.689999
false
4EES
A
397
ARG
NH2
N
6.014
-9.6
30.209999
1
31.68
false
4EES
A
398
LEU
N
N
6.043
-0.901
25.934999
1
19.610001
false
4EES
A
398
LEU
CA
C
6.707
0.145
25.223
1
20.280001
true
4EES
A
398
LEU
C
C
5.818
1.394
25.263
1
20.02
false
4EES
A
398
LEU
O
O
4.591
1.288
25.417
1
20.15
false
4EES
A
398
LEU
CB
C
6.975
-0.251
23.777
1
20.889999
false
4EES
A
398
LEU
CG
C
7.989
-1.36
23.538
1
24.200001
false
4EES
A
398
LEU
CD1
C
8.095
-1.675
22.003
1
23.450001
false
End of preview. Expand in Data Studio

SPICE-Protein: A Curated Set of Protein Structures with Environmental Annotations

SPICE-Protein provides high-quality experimental protein structures with environmental metadata (pH, temperature, ionic strength) extracted from crystallographic conditions.
It is designed as the pretraining foundation for SPICE (Sequence-Protein Interaction under Conditional Environments) — a framework that maps proteins to their stability boundaries under varying pH/temperature conditions.


📊 Dataset Overview

Property Value
Total structures ~45,000
Resolution ≤ 2.5 Å
Protein lengths 40–400 residues
Chain composition Single-chain monomeric proteins only (no nucleic acids, no complexes)
Format Parquet (entries + atoms)
License CC-BY 4.0

Why this dataset?

Most PDB-derived datasets provide only structure + sequence. SPICE-PDB is distinct because it also preserves the experimental conditions under which the structure was determined — specifically, the pH and temperature of the crystallization buffer. These environmental labels are essential for training models that can generalize across different physical conditions, rather than just predicting a single static structure.


🧬 Data Sources

All structures are sourced from the RCSB Protein Data Bank, filtered via the RCSB Search API with the following criteria:

  • exptl_crystal_grow.pH exists
  • exptl_crystal_grow.temp exists
  • rcsb_entry_info.resolution_combined ≤ 2.5 Å
  • rcsb_entry_info.polymer_entity_count_nucleic_acid = 0 (protein only)
  • rcsb_entry_info.polymer_entity_count = 1 (single-chain monomer)
  • 40 ≤ rcsb_entry_info.deposited_polymer_monomer_count ≤ 400

Ionic strength is also extracted where available (from exptl_crystal_grow.pdbx_details), using a heuristic pattern-matching parser.


📁 File Structure

spice_protein/
├── entries_*.parquet        # One row per structure
├── atoms_*.parquet          # One row per atom (long format)
└── README.md

entries_*.parquet Schema

Column Type Description
pdb_id str 4-character PDB accession
method str Experimental method (X-ray, EM, NMR)
resolution f64 Structure resolution (Å)
ph f64 Crystallization pH
temperature f64 Crystallization temperature (K)
rfree f64 R-free value (if available)
ionic_strength_m f64 Extracted ionic strength (M)
has_ionic bool Whether ionic strength was found
seq str Amino acid sequence (1-letter)
n_residues i32 Number of residues
has_env bool True if pH, temperature, and ionic strength are all valid

atoms_*.parquet Schema

Column Type Description
pdb_id str 4-character PDB accession
chain_id str Chain identifier
res_seq i32 Residue sequence number
res_name str Residue name (3-letter)
atom_name str Atom name (e.g., CA, CB, N, C)
element str Element symbol
x, y, z f32 Atomic coordinates (Å)
occupancy f32 Occupancy
b_factor f32 B-factor
is_ca bool True for Cα atoms

🔧 Usage

Load entries table

import polars as pl

entries = pl.read_parquet("entries_0001.parquet")
print(entries.head())

Filter by environment

# Get all structures at low pH
acidic = entries.filter(pl.col("ph") < 5.0)

# Get all structures with ionic strength reported
with_ions = entries.filter(pl.col("has_ionic") == True)

Reconstruct a protein structure

import polars as pl
import numpy as np

pdb_id = "1L2Y"  # Trp-cage example
atoms = pl.read_parquet("atoms_0001.parquet")
ca_atoms = atoms.filter(
    (pl.col("pdb_id") == pdb_id) & (pl.col("is_ca") == True)
)

coords = np.stack([
    ca_atoms["x"].to_numpy(),
    ca_atoms["y"].to_numpy(),
    ca_atoms["z"].to_numpy(),
], axis=1)

🧪 Preprocessing Pipeline

The dataset was generated using the spice_protein script, which:

  1. Queries RCSB Search API for eligible PDB entries
  2. Downloads full-entry mmCIF files (not assemblies — assemblies lack environmental metadata)
  3. Parses each file using gemmi to extract:
    • Sequence (from _entity_poly or reconstructed from Cα residues)
    • Atomic coordinates (filtered to ATOM records only)
    • pH, temperature, and ionic strength (heuristic extraction)
  4. Validates environment values (pH 0–14, temp 150–400 K)
  5. Writes Parquet shards (5000 structures per shard)
  6. Resumes on interruption (checkpoints converted IDs)

📊 Statistics

(These numbers will be filled after your full run completes)

Metric Value
Total entries ~45,000
Average resolution ~2.0 Å
pH range 3.0 – 9.5
Temperature range 180 – 340 K
Average sequence length ~150 residues
Structures with ionic strength ~15-20%

🔗 Relationship to SPICE

SPICE-PDB is the pretraining dataset for the SPICE framework. During pretraining, the model learns to predict Cα coordinates from (sequence, pH, temperature, ionic_strength). This learned representation is then used as the initial backbone for the RL fine-tuning stage, where SPICE explores stability boundaries under environmental perturbations.

In the SPICE paper, this dataset is referenced as the foundation for all subsequent RL-based adaptation.


📝 Citation

If you use this dataset, please cite this dataset. You can get BibTex via Hugging Face.

Additionally, the underlying structures are from the PDB; please cite the original PDB entries.


⚠️ Notes and Limitations

  1. Environmental labels are crystallization conditions, not physiological conditions. pH/temperature in the crystallization drop may differ from cellular environments.
  2. Ionic strength extraction is heuristic — it is not guaranteed to be accurate for all entries, but has_ionic flag indicates whether a value was found.
  3. Only monomeric single-chain proteins are included. Multi-domain proteins, complexes, and membrane proteins are excluded for v1 compatibility.
  4. Resolution-based filtering excludes low-quality structures but may also remove some valid large proteins > 400 residues.

🙏 Acknowledgements

  • RCSB PDB for maintaining the structural database
  • The gemmi and polars teams for excellent parsing and data tools
  • The SPICE organization contributors
Downloads last month
232