File size: 6,063 Bytes
f10c90f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fcafbef
f10c90f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fcafbef
f10c90f
fcafbef
 
 
 
 
 
 
 
 
 
 
 
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
---
pretty_name: PDB Chemical Component Dictionary
license: other
tags:
- biology
- chemistry
- structural-biology
- pdb
- chemical-components
- mmcif
- parquet
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*.parquet
  - split: test
    path: data/test-*.parquet
---

# PDB Chemical Component Dictionary

PDB-CCD is the Chemical Component Dictionary used by the Protein Data Bank to describe residues, modified residues, ligands, solvents, and other chemical components in macromolecular structures.

## Splits

The split is deterministic by component identifier: `sha256(component_id) % 10`. Bucket `0` is `test`; buckets `1` through `9` are `train`.

| Split | Rows |
|---|---:|
| train | 45,045 |
| test | 5,009 |
| total | 50,054 |

## Dataset Statistics

| Field | Value |
|---|---:|
| Components | 50,054 |
| Released components | 49,292 |
| Obsolete components | 762 |
| Components with atoms | 49,947 |
| Components with bonds | 49,921 |
| Components with descriptors | 50,052 |
| Components with identifiers | 37,058 |
| Components with PCM annotations | 613 |
| Latest modified date in source | `2026-04-24` |

| Common component type | Rows |
|---|---:|
| NON-POLYMER | 26,117 |
| non-polymer | 19,493 |
| L-PEPTIDE LINKING | 923 |
| L-peptide linking | 580 |
| peptide-like | 556 |
| D-saccharide | 405 |
| DNA LINKING | 325 |
| RNA LINKING | 223 |

## Usage

Install the Hugging Face Datasets library:

```bash
pip install datasets
```

Load all splits:

```python
from datasets import load_dataset

ds = load_dataset("LiteFold/PDB-CCD")
print(ds)

row = ds["train"][0]
print(row["component_id"], row["name"], row["formula"])
```

Load one split:

```python
from datasets import load_dataset

train = load_dataset("LiteFold/PDB-CCD", split="train")
test = load_dataset("LiteFold/PDB-CCD", split="test")
```

Stream rows without downloading the full table first:

```python
from datasets import load_dataset

stream = load_dataset("LiteFold/PDB-CCD", split="train", streaming=True)
for row in stream.take(5):
    print(row["component_id"], row["canonical_smiles"], row["atom_count"])
```

Filter released non-polymer components with InChIKeys:

```python
from datasets import load_dataset

ds = load_dataset("LiteFold/PDB-CCD", split="train")
released = ds.filter(
    lambda row: row["release_status"] == "REL"
    and row["component_type"] in {"NON-POLYMER", "non-polymer"}
    and row["inchikey"] is not None
)
print(released[0])
```

Find components modified after a date:

```python
from datasets import load_dataset

ds = load_dataset("LiteFold/PDB-CCD", split="train")
recent = ds.filter(lambda row: row["modified_date"] is not None and row["modified_date"] >= "2026-01-01")
print(recent[0]["component_id"], recent[0]["modified_date"])
```

## Columns

| Column | Description |
|---|---|
| `component_id` | Chemical component identifier. |
| `name` | Component name from `_chem_comp.name`. |
| `component_type` | Raw `_chem_comp.type` value. |
| `pdbx_type` | Raw `_chem_comp.pdbx_type` value. |
| `formula` | Chemical formula. |
| `formula_weight` | Formula weight as a float. |
| `formal_charge` | Formal charge as an integer. |
| `mon_nstd_parent_comp_id` | Parent component ID for non-standard monomers, when present. |
| `one_letter_code` | One-letter code, when present. |
| `three_letter_code` | Three-letter code, when present. |
| `pdbx_synonyms` | Synonym field from `_chem_comp`. |
| `synonym_names` | Synonyms from `pdbx_chem_comp_synonyms`. |
| `initial_date` | Initial component date. |
| `modified_date` | Last modified date. |
| `release_status` | Release status, such as `REL` or `OBS`. |
| `replaced_by` | Replacement component ID, when present. |
| `replaces` | Component ID replaced by this component, when present. |
| `atom_ids` | Atom identifiers from `chem_comp_atom`. |
| `atom_elements` | Element symbols for `atom_ids`. |
| `atom_charges` | Atom charges. |
| `atom_aromatic_flags` | Atom aromatic flags. |
| `atom_leaving_flags` | Atom leaving-atom flags. |
| `atom_stereo_configs` | Atom stereochemistry flags. |
| `atom_count` | Number of atoms. |
| `heavy_atom_count` | Number of non-hydrogen atoms. |
| `hydrogen_atom_count` | Number of hydrogen atoms. |
| `bond_atom_id_1` | First atom ID for each bond. |
| `bond_atom_id_2` | Second atom ID for each bond. |
| `bond_orders` | Bond order values. |
| `bond_aromatic_flags` | Bond aromatic flags. |
| `bond_stereo_configs` | Bond stereochemistry flags. |
| `bond_count` | Number of bonds. |
| `descriptor_types` | Descriptor types such as `SMILES`, `SMILES_CANONICAL`, `InChI`, and `InChIKey`. |
| `descriptors` | Descriptor values. |
| `canonical_smiles` | First `SMILES_CANONICAL` descriptor. |
| `smiles` | First `SMILES` descriptor. |
| `inchi` | First `InChI` descriptor. |
| `inchikey` | First `InChIKey` descriptor. |
| `identifier_types` | Identifier types from `pdbx_chem_comp_identifier`. |
| `identifiers` | Identifier values. |
| `systematic_names` | Identifier values whose type is `SYSTEMATIC NAME`. |
| `audit_actions` | Audit action types. |
| `audit_dates` | Audit dates. |
| `related_component_ids` | Related component IDs, when present. |
| `pcm_ids` | Protein modification annotation IDs, when present. |
| `pcm_modified_residue_ids` | Modified residue IDs from PCM annotations. |
| `feature_types` | Feature types from `pdbx_chem_comp_feature`. |
| `feature_values` | Feature values from `pdbx_chem_comp_feature`. |
| `split_bucket` | Deterministic split bucket from `sha256(component_id) % 10`. |

# Citation

```
@article{westbrook2015pdbccd,
  title   = {The chemical component dictionary: complete descriptions of constituent molecules in experimentally determined 3D macromolecules in the Protein Data Bank},
  author  = {Westbrook, John D. and Shao, Chuming and Feng, Zukang and Zhuravleva, Maria and Velankar, Sameer and Young, Jasmine},
  journal = {Bioinformatics},
  volume  = {31},
  number  = {8},
  pages   = {1274--1278},
  year    = {2015},
  doi     = {10.1093/bioinformatics/btu789}
}
```