/atomistic-skills:drug-docking-vinafrom Atomistic Skills
Dock small-molecule ligands into a protein receptor using AutoDock Vina (Python API) and save ranked poses + docking metadata for reproducible virtual screening.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To perform molecular docking of one or more small-molecule ligands into a protein receptor using AutoDock Vina (>= 1.2.x) via its Python API, producing:
This skill is intended for pose generation and relative ranking, not rigorous binding free energy prediction. Please refer to the original Vina method (Trott & Olson, https://doi.org/10.1002/jcc.21334) and the AutoDock Vina repo (https://github.com/ccsb-scripps/AutoDock-Vina) for more details.
Docking accuracy is strongly affected by structure preparation (protonation, missing residues, cofactors, waters, tautomer states, etc.). Use:
*_prepared.pdbqt*.pdbqt (consider multiple protomers/tautomers)${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/../drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1HSG \
--heterogens none \
--missing_residues ignore \
--output_dir docking/inputs/
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/../drug-ligand-prep/scripts/prepare_ligand.py \
--smiles "CC(=O)Oc1ccccc1C(=O)O" \
--name aspirin \
--output_dir docking/inputs/
Best practice: if you have a co-crystal ligand, keep it as a positive control for redocking validation.
You must define the docking region. The most common approaches:
If you have a reference ligand already positioned in the binding site (PDBQT), compute a reasonable box automatically:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/compute_box_from_pdbqt.py \
docking/inputs/reference_ligand.pdbqt \
--padding 6.0 \
--min_size 20.0 \
--output_json docking/inputs/docking_box.json
This writes center_x/y/z and size_x/y/z you can paste into the docking command.
${CLAUDE_SKILL_DIR}/../../venv/run cpu+docking python ${CLAUDE_SKILL_DIR}/scripts/run_docking.py \
--receptor docking/inputs/1HSG_prepared.pdbqt \
--ligand docking/inputs/aspirin.pdbqt \
--center_x 16.0 --center_y 25.0 --center_z 2.0 \
--size_x 20 --size_y 20 --size_z 20 \
--scoring vina \
--exhaustiveness 32 \
--n_poses 10 \
--energy_range 3.0 \
--min_rmsd 1.0 \
--seed 42 \
--cpu 0 \
--output_dir docking/results/
Outputs:
docking/results/aspirin_docked.pdbqtdocking/results/docking_results.json${CLAUDE_SKILL_DIR}/../../venv/run cpu+docking python ${CLAUDE_SKILL_DIR}/scripts/run_docking.py \
--receptor docking/inputs/1HSG_prepared.pdbqt \
--ligand_dir docking/inputs/ligands_pdbqt/ \
--center_x 16.0 --center_y 25.0 --center_z 2.0 \
--size_x 20 --size_y 20 --size_z 20 \
--scoring vina \
--exhaustiveness 16 \
--n_poses 5 \
--seed 42 \
--cpu 0 \
--output_dir docking/screening_results/
Tip: for batch docking, the script will compute Vina maps once (before loading ligands) to reduce repeated setup overhead.
run_docking.py writes a machine-readable JSON that is good for reproducibility but not directly consumable by downstream analysis tools (such as drug-docking-analysis). Use collect_results.py to produce a ranked CSV that joins the docking scores with library metadata (SMILES, labels, microstate/parent IDs).
# (stdlib only, venv/cpu project works)
# Combined JSON from run_docking.py
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/collect_results.py \
--results docking/results/docking_results.json \
--library_csv library/library_master.csv \
--output_dir docking/analysis/
# Or a directory of per-ligand *_result.json files (SLURM array workflows)
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/collect_results.py \
--results docking/results/ \
--library_csv library/library_master.csv \
--output_dir docking/analysis/
Library CSV requirements: must have a compound_id column. The compound_id value must match the ligand field in the docking JSON, which is the PDBQT filename stem set by drug-ligand-prep (e.g. indinavir.pdbqt -> indinavir). Any of these columns, when present, are passed through to the ranked CSV and are picked up by downstream analysis tools:
smiles (used by drug-docking-analysis for ligand efficiency metrics)label (used for retrospective enrichment)parent_compound_id and microstate_id (used for microstate aggregation when protomers/tautomers were enumerated during ligand prep)pchembl (passed through for reference)Output: docking_ranked.csv sorted by best_affinity (most negative first) with columns rank, compound_id, best_affinity, [passthrough columns], n_poses, runtime_s. Also writes docking_collect_summary.json with counts and the top 10.
Docking is approximate; good practice is to validate your protocol for a given target:
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/../drug-protein-prep/scripts/prepare_protein.py \
--pdb_id 1HSG \
--heterogens none \
--missing_residues ignore \
--output_dir hiv_docking/inputs/
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/../drug-ligand-prep/scripts/prepare_ligand.py \
--smiles "CC(C)(C)NC(=O)C1CC2CCCCC2CN1CC(O)C(CC1=CC=CC=C1)NC(=O)C(CC(N)=O)NC(=O)C1=CC2=CC=CC=C2N1" \
--name indinavir \
--output_dir hiv_docking/inputs/
${CLAUDE_SKILL_DIR}/../../venv/run cpu+docking python ${CLAUDE_SKILL_DIR}/scripts/run_docking.py \
--receptor hiv_docking/inputs/1HSG_prepared.pdbqt \
--ligand hiv_docking/inputs/indinavir.pdbqt \
--center_x 16.0 --center_y 25.0 --center_z 2.0 \
--size_x 20 --size_y 20 --size_z 20 \
--exhaustiveness 32 \
--n_poses 10 \
--output_dir hiv_docking/results/
cpu; docking runs in cpu+docking and receptor preparation in cpu+openmm.vina package; typically Vina >= 1.2.x).--seed for reproducibility and consider higher --exhaustiveness for difficult systems.Trott, O.; Olson, A. J. AutoDock Vina: Improving the Speed and Accuracy of Docking with a New Scoring Function, Efficient Optimization, and Multithreading. J. Comput. Chem. 2010, 31, 455–461. https://doi.org/10.1002/jcc.21334
Eberhardt, J.; Santos-Martins, D.; Tillack, A. F.; Forli, S. AutoDock Vina 1.2.0: New Docking Methods, Expanded Force Field, and Python Bindings. J. Chem. Inf. Model. 2021, 61, 3891–3898. https://doi.org/10.1021/acs.jcim.1c00203
Forli, S. Charting a Path to Success in Virtual Screening. Molecules 2015, 20, 18732–18758. https://doi.org/10.3390/molecules201018732
Paggi, J. M.; Pandit, A.; Dror, R. O. The Art and Science of Molecular Docking. Annu. Rev. Biochem. 2024, 93, 389–410. https://doi.org/10.1146/annurev-biochem-030222-120000
Feinstein, W. P.; Brylinski, M. Calculating an Optimal Box Size for Ligand Docking and Virtual Screening against Experimental and Predicted Binding Pockets. J. Cheminform. 2015, 7, 18. https://doi.org/10.1186/s13321-015-0067-5
Author: Matthew Cox Contact: GitHub @mcox3406
examples/hiv1_protease/README.md (opens in a new tab)examples/hiv1_protease/inputs/1HSG_prepared.pdb (opens in a new tab)examples/hiv1_protease/inputs/1HSG_prepared.pdbqt (opens in a new tab)examples/hiv1_protease/inputs/indinavir/indinavir.pdbqt (opens in a new tab)examples/hiv1_protease/output/docking_results.json (opens in a new tab)examples/hiv1_protease/output/indinavir_docked.pdbqt (opens in a new tab)scripts/collect_results.py (opens in a new tab)scripts/compute_box_from_pdbqt.py (opens in a new tab)scripts/run_docking.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job