pdb
/pdb
Fetch and analyze protein structures from RCSB PDB. Use this skill when: (1) Need to download a structure by PDB ID, (2) Search for similar structures, (3) Prepare target for binder design, (4) Extract specific chains or domains, (5) Get structure metadata. For sequence lookup, use uniprot. For binder design workflow, use binder-design.
- Author
- ekko8600 ↗
- Repository
- enzyme_design_harness ↗
- Licence
- Apache-2.0
- Last repository change
- 08.11.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Fetch and analyze protein structures from RCSB PDB. Use this skill when: (1) Need to download a structure by PDB ID, (2) Search for similar structures, (3) Prepare target for binder design, (4) Extract specific chains or domains, (5) Get structure metadata. For sequence lookup, use uniprot. For binder design workflow, use binder-design.
Original author description
Fetch and analyze protein structures from RCSB PDB. Use this skill when: (1) Need to download a structure by PDB ID, (2) Search for similar structures, (3) Prepare target for binder design, (4) Extract specific chains or domains, (5) Get structure metadata. For sequence lookup, use uniprot. For binder design workflow, use binder-design.
How it works
- Fetching a Structure
- Searching PDB
- Metadata
- Local Structure Handling
- Troubleshooting
SKILL.md preview
---
name: pdb
description: 'Fetch and analyze protein structures from RCSB PDB. Use this skill when:
(1) Need to download a structure by PDB ID, (2) Search for similar structures, (3)
Prepare target for binder design, (4) Extract specific chains or domains, (5) Get
structure metadata.
For sequence lookup, use uniprot. For binder design workflow, use binder-design.
'
metadata:
category: data
tags: database, structure, fetch
legacy_category: utilities
taxonomy_version: enzyme-agent/taxonomy/v1
capability_ids:
- data.scientific_database.retrieval
---
# PDB Database Access
**Quick alias**: the canonical implementation is `pdb-database`. Use its
wrapper scripts for every RCSB access — they enforce rate limits, license
notification, and schema-aware queries. Do **not** hand-roll `curl` or
`requests` calls against RCSB APIs; that bypasses the documented wrapper and is
a discipline violation under AGENTS.md.
## Fetching a Structure
```bash
# PDB format
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation download_coordinate_files -- \
--ids "1ALU" --format "pdb" --output_dir structures/
# mmCIF format
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation download_coordinate_files -- \
--ids "1ALU" --format "mmcif" --output_dir structures/
```
## Searching PDB
Use `search_pdb.py` for attribute, sequence, structure, motif, chemical, and
full-text search. Fetch the schema first to discover the right attributes:
```bash
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation fetch_schema -- --api search_structure --output schema.txt
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation search_pdb -- --query '<JSON query>' --return_type entry --output results.json
```
Sequence-similarity example (no schema fetch needed):
```bash
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation search_pdb -- --query '{ "query": { "type": "terminal", "service": "sequence", "parameters": { "evalue_cutoff": 1, "identity_cutoff": 0.9, "sequence_type": "protein", "value": "MKTAYIAKQRQISFVK..." } }, "request_options": { "scoring_strategy": "sequence" } }' --return_type polymer_entity --output results.json
```
## Metadata
Prefer metadata queries over downloading full coordinate files when you only
need entry-level facts:
```bash
enzyme-core run pdb-database --work-dir ./runs/pdb-database --operation fetch_pdb_metadata -- \
--query '{ entries(entry_ids:["1ALU"]) { rcsb_id struct { title } exptl { method } } }' --output metadata.json
```
## Local Structure Handling
Once the file is downloaded, local processing with Bio.PDB is fine (no API
calls). Common steps:
### Selecting Chains
```python
from Bio.PDB import PDBParser, PDBIO, Select
class ChainSelect(Select):
def __init__(self, chain_id):
self.chain_id = chain_id
def accept_chain(self, chain):
return chain.id == self.chain_id
parser = PDBParser(QUIET=True)
structure = parser.get_structure("protein", "structures/1ALU.pdb")
io = PDBIO()
io.set_structure(structure)
io.save("chain_A.pdb", ChainSelect("A"))
```
### Common Tasks for Binder Design
1. Download structure via `pdb-database` (see above).
2. Identify target chain.
3. Remove waters and ligands (if needed).
4. Trim to binding region + buffer.
5. Identify potential hotspots.
6. Renumber if needed.
## Troubleshooting
**Structure not found**: Check PDB ID format (4 characters).
**Multiple models**: Select first model for design.
**Missing residues**: Check for gaps in structure.
**Wrapper missing/error**: Read `pdb-database/SKILL.md`; do not fall back to
raw HTTP without recording the wrapper failure first.
---
**Next**: Use structure with `boltz` (recommended) for structure validation, or
`pyrosetta-pose` for modeling.
Files in this package (4)
- SKILL.md 4 KB
- execution_profile.json 2 KB
- scientific_contract.yaml 1 KB
- agents/openai.yaml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · ekko8600/enzyme_design_harness | 100 | Apache-2.0 |
| adaptyvbio/protein-design-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version d2dc7394e93b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100pdb-structure
Query the RCSB PDB API for protein 3D structures, experimental metadata, and structure files. Use when the user needs crystal or cryo-EM structure data, PDB entries, resolution info, or structure file downloads. NOT for protein sequences/annotations (use UniProt), gene data (use… - 100uniprot-rcsb
Retrieve protein sequences, annotation, and structures from UniProtKB, the RCSB PDB, and AlphaFold DB. Use this skill to resolve a gene or protein name to a UniProt accession, pull sequences and FASTA files, find binding sites and domains, search the PDB by UniProt accession,… - 100tooluniverse-protein-structure-retrieval
Retrieves protein structure data from RCSB PDB, PDBe, and AlphaFold with protein disambiguation, quality assessment, and comprehensive structural profiles. Creates detailed structure reports with experimental metadata, ligand information, and download links. Use when users need… - 100pdb-database
Access the RCSB Protein Data Bank (PDB) to search, download, and programmatically retrieve 3D macromolecular structures and metadata; use when you need structure discovery (text/sequence/3D similarity) or automated structural data ingestion for structural biology and drug discovery workflows. - 100alterlab-pdb
Access the RCSB Protein Data Bank (PDB) for EXPERIMENTALLY determined 3D structures (X-ray, cryo-EM, NMR) of proteins and nucleic acids — searching by text, sequence, or structure similarity and downloading coordinates in PDB/mmCIF format with metadata. Use when retrieving a… - 100uniprot
Access UniProt for protein sequence and annotation retrieval. Use this skill when: (1) Looking up protein sequences by accession, (2) Finding functional annotations, (3) Getting domain boundaries, (4) Finding homologs and variants, (5) Cross-referencing to PDB structures. For…