drug-protein-prep
Skill174 starsChanged 6 months agoMITView on GitHub
Prepare macromolecular receptor structures (PDB/mmCIF or RCSB PDB ID) for docking or simulation by fixing common structure issues and adding hydrogens.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Use the MCP tool to convert the prepared PDB to PDBQT format.
- Very specific: line 90
If protonation is critical, consider a hydrogen optimization / pKa-aware tool (e.g., Reduce/Reduce2, PROPKA/PDB2PQR/H++), then regenerate …
- Distinctive: line 122
Protonation: Default pH-based hydrogen addition is a baseline.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
protein-prep
Goal
To prepare protein (and optionally nucleic acid) receptor structures for molecular docking (e.g., AutoDock Vina) by:
- retrieving coordinates from RCSB PDB (optional),
- fixing common structural issues (missing atoms, nonstandard residues),
- adding hydrogens at a target pH.
Note: This skill handles structure cleanup and protonation. To convert the result to PDBQT for docking, use the
mcp_drugdisc_convert_to_pdbqttool.
Instructions
1. Prepare a receptor to PDB (Cleanup + Hydrogens)
This script manages missing atoms, nonstandard residues, and protonation.
# Env: drugdisc-agent
python .agents/skills/drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1iep \
--chains A \
--ph 7.0 \
--heterogens none \
--missing_residues ignore \
--output_dir protein_prep/2. Convert to PDBQT (for AutoDock Vina)
Use the MCP tool to convert the prepared PDB to PDBQT format.
mcp_drugdisc_convert_to_pdbqt(
input_data="protein_prep/1IEP_prepared.pdb",
output_path="protein_prep/1IEP.pdbqt",
input_type="pdb"
)3. Keep cofactors/metal ions
# Env: drugdisc-agent
python .agents/skills/drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1iep \
--chains A \
--heterogens non-water \
--delete_resname SO4 GOL \
--output_dir protein_prep_keep_cofactors/4. Use a biological assembly (recommended when oligomerization matters)
# Env: drugdisc-agent
python .agents/skills/drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1iep \
--assembly 1 \
--chains A \
--output_dir protein_prep_assembly1/5. Prepare from a local structure file
# Env: drugdisc-agent
python .agents/skills/drug-protein-prep/scripts/prepare_protein.py \
--pdb_file receptor.pdb \
--heterogens none \
--output_dir protein_prep_local/6. Validate the output (strongly recommended)
After preparation:
- Inspect the JSON summary for missing residues, nonstandard residue replacements, and atoms added.
- Visually inspect the binding site and check for:
- correct oligomeric state,
- retained/removed cofactors and metal ions,
- sensible protonation (especially histidines),
- alternate locations resolved appropriately.
If protonation is critical, consider a hydrogen optimization / pKa-aware tool (e.g., Reduce/Reduce2, PROPKA/PDB2PQR/H++), then regenerate PDBQT from the protonated receptor.
Examples
Full Workflow: HIV-1 Protease
- Prepare the structure:
# Env: drugdisc-agent
python .agents/skills/drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1hsg \
--chains A B \
--heterogens none \
--ph 7.0 \
--output_dir hiv_prep/- Convert to PDBQT:
mcp_drugdisc_convert_to_pdbqt(
input_data="hiv_prep/1HSG_prepared.pdb",
output_path="hiv_prep/1HSG.pdbqt",
input_type="pdb"
)Constraints
- Environment: Requires
drugdisc-agent. - Core dependencies:
pdbfixer,openmm. - Protonation: Default pH-based hydrogen addition is a baseline.
- Missing residues: By default, missing residues are ignored to avoid introducing uncertain loop models.
- PDBQT: PDBQT conversion is delegated to the
mcp_drugdisc_convert_to_pdbqttool (which uses Meeko).
Author: Matthew Cox Contact: GitHub @mcox3406
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

