drug-db-pdb
learningmatter-mit/AtomisticSkills/.agents/skills/drug-db-pdb/SKILL.md
Search, filter, and retrieve macromolecular structures from the RCSB Protein Data Bank (PDB), including metadata, bound ligands, and optional coordinate/validation downloads.
Skill172 starsChanged 4 months ago
What's in it
- db-pdb
- Goal
- Instructions
- 1. (Recommended) Create a dedicated output directory
- 2. Search by keyword (full-text)
- 3. Search with structure-quality filters (recommended for drug discovery)
- 4. Retrieve a specific PDB entry by ID
- 5. Download coordinate files (mmCIF recommended)
- 6. (Recommended) Download wwPDB validation report PDF
- Examples
- Constraints
--- 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. category: [drug-discovery] --- # 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 # Env: base-agent 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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 # Env: base-agent python .agents/skills/drug-db-pdb/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 `base-agent` conda environment. --- **Author:** Matthew Cox **Contact:** [GitHub @mcox3406](https://github.com/mcox3406)
More agent context in learningmatter-mit/AtomisticSkills
133 other files this repository gives its agents, the first 60 shown.
AGENTS.md
CLAUDE.md
Skill
- chem-bond-dissociation.agents/skills/chem-bond-dissociation/SKILL.md
- chem-conformer-search.agents/skills/chem-conformer-search/SKILL.md
- chem-db-mof.agents/skills/chem-db-mof/SKILL.md
- chem-db-qmof.agents/skills/chem-db-qmof/SKILL.md
- chem-db-spectra.agents/skills/chem-db-spectra/SKILL.md
- chem-dft-orca-advanced-calculation.agents/skills/chem-dft-orca-advanced-calculation/SKILL.md
- chem-dft-orca-optimization.agents/skills/chem-dft-orca-optimization/SKILL.md
- chem-dft-orca-singlepoint.agents/skills/chem-dft-orca-singlepoint/SKILL.md
- chem-docking-void.agents/skills/chem-docking-void/SKILL.md
- chem-hazard-toxicity.agents/skills/chem-hazard-toxicity/SKILL.md
- chem-irc-verification.agents/skills/chem-irc-verification/SKILL.md
- chem-msms-predict.agents/skills/chem-msms-predict/SKILL.md
- chem-neb-barrier.agents/skills/chem-neb-barrier/SKILL.md
- chem-nmr-analysis.agents/skills/chem-nmr-analysis/SKILL.md
- chem-nmr-predict.agents/skills/chem-nmr-predict/SKILL.md
- chem-react-ot.agents/skills/chem-react-ot/SKILL.md
- chem-similarity-search.agents/skills/chem-similarity-search/SKILL.md
- chem-solution-md.agents/skills/chem-solution-md/SKILL.md
- chem-sorption-gcmc.agents/skills/chem-sorption-gcmc/SKILL.md
- chem-sorption-relax.agents/skills/chem-sorption-relax/SKILL.md
- chem-sorption-widom.agents/skills/chem-sorption-widom/SKILL.md
- chem-spectrum-matcher.agents/skills/chem-spectrum-matcher/SKILL.md
- chem-thermochemistry.agents/skills/chem-thermochemistry/SKILL.md
- chem-ts-optimization.agents/skills/chem-ts-optimization/SKILL.md
- chem-vibration.agents/skills/chem-vibration/SKILL.md
- drug-admet-prediction.agents/skills/drug-admet-prediction/SKILL.md
- drug-binding-site-definition.agents/skills/drug-binding-site-definition/SKILL.md
- drug-bioactivity-assay.agents/skills/drug-bioactivity-assay/SKILL.md
- drug-complex-system-builder.agents/skills/drug-complex-system-builder/SKILL.md
- drug-db-chembl.agents/skills/drug-db-chembl/SKILL.md
- drug-db-pubchem.agents/skills/drug-db-pubchem/SKILL.md
- drug-docking-analysis.agents/skills/drug-docking-analysis/SKILL.md
- drug-docking-vina.agents/skills/drug-docking-vina/SKILL.md
- drug-ligand-prep.agents/skills/drug-ligand-prep/SKILL.md
- drug-mmpbsa-gbsa.agents/skills/drug-mmpbsa-gbsa/SKILL.md
- drug-molecular-fingerprints.agents/skills/drug-molecular-fingerprints/SKILL.md
- drug-pocket-detection.agents/skills/drug-pocket-detection/SKILL.md
- drug-pose-validation.agents/skills/drug-pose-validation/SKILL.md
- drug-protein-ligand-md.agents/skills/drug-protein-ligand-md/SKILL.md
- drug-protein-prep.agents/skills/drug-protein-prep/SKILL.md
- drug-redocking-rmsd.agents/skills/drug-redocking-rmsd/SKILL.md
- drug-retrosynthesis.agents/skills/drug-retrosynthesis/SKILL.md
- drug-trajectory-analysis.agents/skills/drug-trajectory-analysis/SKILL.md
- general-arxiv-search.agents/skills/general-arxiv-search/SKILL.md
- general-biorxiv-search.agents/skills/general-biorxiv-search/SKILL.md
- general-chemical-literature.agents/skills/general-chemical-literature/SKILL.md
- general-chemical-pricing.agents/skills/general-chemical-pricing/SKILL.md
- general-deep-research.agents/skills/general-deep-research/SKILL.md
- general-fair-data-review.agents/skills/general-fair-data-review/SKILL.md
- general-patent-search.agents/skills/general-patent-search/SKILL.md
- general-peer-review.agents/skills/general-peer-review/SKILL.md
- general-plot-digitizer.agents/skills/general-plot-digitizer/SKILL.md
- general-presentation.agents/skills/general-presentation/SKILL.md
- general-property-units.agents/skills/general-property-units/SKILL.md
- general-query-literature-database.agents/skills/general-query-literature-database/SKILL.md
- general-workflow-planner.agents/skills/general-workflow-planner/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

