Skip to content
Agentmart
Submit a tool

drug-db-pdb

Search, filter, and retrieve macromolecular structures from the RCSB Protein Data Bank (PDB), including metadata, bound ligands, and optional…

Skill by learningmatter-mit

IndexedMIT★ 183
Write a review

Chalk Labs

Need help deploying drug-db-pdb?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/learningmatter-mit-drug-db-pdb

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search, filter, and retrieve macromolecular structures from the RCSB Protein Data Bank (PDB), including metadata, bound ligands, and optional coordinate/validation downloads.

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 4

  • codeload.github.com · found in install command
  • data.rcsb.org · found in code
  • files.rcsb.org · found in code
  • search.rcsb.org · found in code

Files it touches

  • ~/.claude/skills/drug-db-pdb

What's inside

Skill name
drug-db-pdb
Description
Search, filter, and retrieve macromolecular structures from the RCSB Protein Data Bank (PDB), including metadata, bound ligands, and optional coordinate/validation downloads.
License
MIT
Instructions
104 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • SKILL.md
  • 1hsg_entry.json · examples/
  • README.md · examples/
  • hiv1_protease_search.json · examples/
  • query_pdb.py · scripts/

SKILL.md (first lines)

# db-pdb

## Goal
To programmatically discover and retrieve protein (and protein-ligand complex) structures from the RCSB Protein Data Bank (PDB) by combining the RCSB Search API (to find matching PDB IDs) with the RCSB Data API (to retrieve rich metadata and ligand information), and optionally downloading coordinate files (PDB/mmCIF) and wwPDB validation reports for downstream modeling.

## Instructions

### 1. (Recommended) Create a dedicated output directory
Keep downloaded coordinates/JSON in a reproducible folder.

```bash
mkdir -p research/db-pdb/ace2_example
```

### 2. Search by keyword (full-text)
Uses the RCSB Search API to return the top scoring PDB IDs for a query.

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --search "kinase inhibitor" \
  --max_results 10 \
  --output research/db-pdb/kinase_results.json
```

### 3. Search with structure-quality filters (recommended for drug discovery)
For ligand modeling, you often want:
- An experimental method like **X-RAY DIFFRACTION** (or high-resolution cryo-EM).
- A resolution cutoff (e.g., <= 2.5 A for X-ray, context dependent).

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --search "ACE2" \
  --organism "Homo sapiens" \
  --method "X-RAY DIFFRACTION" \
  --resolution 2.5 \
  --max_results 25 \
  --output research/db-pdb/ace2_xray_le2p5.json
```

### 4. Retrieve a specific PDB entry by ID
This pulls metadata via the Data API and (by default) also collects bound ligands by enumerating non-polymer entities.

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --pdb_id 1HSG \
  --output research/db-pdb/1hsg_info.json
```

### 5. Download coordinate files (mmCIF recommended)
The PDB ecosystem's canonical archival format is PDBx/mmCIF (legacy PDB format can be unavailable or insufficient for very large structures).

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --pdb_id 1HSG \
  --download mmcif \
  --download_dir research/db-pdb/structures \
  --output research/db-pdb/1hsg_with_file.json
```

### 6. (Recommended) Download wwPDB validation report PDF
Quality assessment for experimental structures is standardized via wwPDB validation reports; these are especially important for ligand-bound structures in drug discovery workflows.

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --pdb_id 1HSG \
  --download_validation \
  --download_dir research/db-pdb/validation \
  --output research/db-pdb/1hsg_with_validation.json
```

## Examples

Search HIV-1 protease entries, then fetch + download the best candidate:

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --search "HIV-1 protease" \
  --method "X-RAY DIFFRACTION" \
  --resolution 2.0 \
  --max_results 10 \
  --output research/db-pdb/hiv1_protease_candidates.json
```

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pdb.py \
  --pdb_id 1HSG \
  --download mmcif \
  --download_validation \
  --download_dir research/db-pdb/hiv1_protease_files \
  --output research/db-pdb/1hsg_full.json
```

## Constraints
- **API Rate Limits**: RCSB PDB APIs are rate-limited; the script implements a minimum inter-request interval and exponential backoff on HTTP 429.
- **Ligand metadata**: "Ligands" here refer to non-polymer entities in the PDB hierarchy. The script enumerates non-polymer entity IDs from the entry container identifiers and queries each nonpolymer entity object.
- **File formats**: Prefer mmCIF for robustness; legacy PDB may be incomplete or unavailable for some entries.
- **Quality selection**: For drug discovery, do not select structures using resolution alone -- use wwPDB validation reports and ligand-quality metrics when available.
- **Environment**: Requires the `cpu` environment.
---

**Author:** Matthew Cox
**Contact:** [GitHub @mcox3406](https://github.com/mcox3406)

From learningmatter-mit/AtomisticSkills, MIT.

More from learningmatter-mit/AtomisticSkills

Signals

Stars
183
Forks
31
Open issues
0
Last commit (this folder)
Oct 5, 2026 (27 days ago)
Last release
Oct 6, 2026 (26 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from learningmatter-mit

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get drug-db-pdb running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying drug-db-pdb?

CallGet help
Cite this page

drug-db-pdb skill. Agent Mart. https://agentmart.dev/skills/learningmatter-mit-drug-db-pdb (last updated 2026-10-24)