Drug Dockingのロゴ

Drug Docking

コミュニティ
sagirimo
drug-docking

Virtual screening by molecular docking with AutoDock Vina — dock a set of small-molecule ligands (given as SMILES in a .smi/.csv/.txt file, or as an .sdf) into a receptor pocket, rank the hits by predicted binding affinity (kcal/mol) and save the best pose for each ligand. Use for structure-based drug screening / hit finding, not for ligand-based similarity search.

Add to TypingMind

概要

公開者sagirimo
リポジトリBioDSH
スキル名drug-docking
スター
65
フォーク
2
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    sagirimoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Drug Docking」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/drug-docking
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sagirimo/BioDSH.git /tmp/BioDSH
mkdir -p .claude/skills
cp -r /tmp/BioDSH/biodsh-core/skills/drug-docking .claude/skills/drug-docking
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDrug Dockingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDrug Dockingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Drug Dockingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Molecular docking virtual screening (AutoDock Vina)

Use this skill when the user wants to dock small molecules into a protein pocket and rank them by binding affinity — structure-based virtual screening, hit triage, or re-scoring a candidate series against one receptor. You need a receptor structure and a set of ligands (SMILES or an SDF of 3D molecules).

Do not use it for: ligand-based similarity/QSAR (no receptor), protein–protein docking, or free-energy / MD refinement (use the md-simulation skill to relax a complex afterwards).

Install the heavy libraries first (compute-heavy)

The base analysis env does not ship the docking stack. Install it once with the app's package tool before the first run:

bash
uv pip install vina meeko rdkit
  • vina — AutoDock Vina Python bindings (the docking engine).
  • meeko — prepares ligand and receptor PDBQT files (atom typing, torsions, Gasteiger charges).
  • rdkit — turns SMILES into a sensible 3D conformer before docking.

This is compute-heavy: each ligand runs a full Vina search. Time scales with --exhaustiveness and the number of ligands. Screen a handful first to check the box, then scale up. If vina's wheel is unavailable on the platform, it can also be built from source or installed via conda (conda install -c conda-forge vina); meeko/rdkit install cleanly from pip.

Required inputs

  • --receptor — the target, as .pdb or .pdbqt. A .pdbqt is used directly. A .pdb is auto-converted to PDBQT (Meeko mk_prepare_receptor if available, else Open Babel obabel -xr). If neither tool is present the script tells you the exact command to prepare it yourself.
  • --ligands — the library to screen: a .smi / .csv / .txt of SMILES (optionally name,SMILES or SMILES name, with or without a header) or an .sdf of 3D molecules.
  • The search box — required, one of:
    • --center X,Y,Z (Å, e.g. the pocket centroid), or
    • --ref-ligand FILE (a bound ligand as .pdb/.pdbqt/.sdf/.mol/.mol2) to auto-derive the box center from its geometric center.

Exact run command

bash
bioenv/.venv/bin/python "<skill dir>/run.py" \
  --receptor receptor.pdb \
  --ligands ligands.smi \
  --ref-ligand crystal_ligand.sdf \
  --box-size 20,20,20 \
  --exhaustiveness 8 \
  --outdir docking_out

Or with an explicit box center instead of a reference ligand:

bash
bioenv/.venv/bin/python "<skill dir>/run.py" \
  --receptor receptor.pdbqt --ligands library.csv \
  --center 12.5,3.0,-8.7 --box-size 22,22,22 --exhaustiveness 16 --outdir docking_out

Options: --box-size sx,sy,sz (Å, default 20,20,20), --exhaustiveness N (default 8; raise for harder pockets), --n-poses N (poses to search, default 1), --seed N (default 42, for reproducibility), --max-ligands N (cap for a quick test run).

Reading the outputs

Everything lands in --outdir:

  • docking_scores.csv — ligand_id, smiles, best_affinity_kcal_mol, sorted ascending (most negative = strongest predicted binder first). This is the ranking to report.
  • poses/<ligand_id>.pdbqt — the best docked pose per ligand (view in PyMOL/Chimera on top of the receptor).
  • docking_top.png — barplot of the top hits by affinity.
  • docking_summary.json — receptor, box center + size, exhaustiveness, n_ligands attempted / succeeded / failed, and the top10.

The script prints a short ranked summary to stdout. Report the top hits and the absolute path of docking_scores.csv.

Caveats

  • Vina scores are a rough estimate, not a measured binding free energy. Use them to rank and triage, then confirm the top hits by a better method (MD/MM-GBSA, or experiment). Differences of a few tenths of a kcal/mol are noise.
  • Garbage box, garbage result. The pose is only meaningful if the box actually encloses the pocket. Prefer --ref-ligand from a known bound structure; otherwise verify --center visually.
  • Ligands that fail 3D embedding or PDBQT prep are skipped and logged (see n_failed and stderr), not silently dropped — the run continues.
  • The receptor is treated as rigid and protonation/tautomer states are taken as given. For a serious campaign, prepare the receptor (protonation, flips) beforehand and pass a curated .pdbqt.
  • Docking assumes a prepared, sensible input structure; it does not fix missing loops or clashes.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Drug Docking」では何ができますか?

Virtual screening by molecular docking with AutoDock Vina — dock a set of small-molecule ligands (given as SMILES in a .smi/.csv/.txt file, or as an .sdf) into a receptor pocket, rank the hits by predicted binding affinity (kcal/mol) and save the best pose for each ligand. Use for structure-based drug screening / hit finding, not for ligand-based similarity search.

TypingMindでDrug Dockingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Drug Dockingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDrug Dockingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/drug-dockingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Drug Dockingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Drug Dockingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDrug Dockingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Drug Docking」は無料ですか?

はい。sagirimoがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇