Logo di Drug Docking

Drug Docking

Community
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

Panoramica

Pubblicato dasagirimo
RepositoryBioDSH
Nome della skilldrug-docking
Stelle
65
Fork
2
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da sagirimo su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Drug Docking in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/drug-docking
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Drug Docking in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Drug Docking non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Drug Docking non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Drug Docking su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Drug Docking è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Drug Docking in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/drug-docking. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Drug Docking?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Drug Docking?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Drug Docking: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Drug Docking è gratuita?

Sì. È pubblicata su GitHub da sagirimo con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇