Binding mode analysis

From GoogleCloudPlatform/LifeSciences · View interactive version

Binding mode analysis is an AI agent skill from the GitHub repository GoogleCloudPlatform/LifeSciences. Score docking poses and classify predicted binding strength — receptor preparation, Vina execution, threshold-based pose classification, and residue-contact verification. Use when scoring how well a ligand fits a pocket, confirming a proposed binding mode, classifying poses by predicted binding stre

How to use this skill

Skill file

1. When to use, and when not

Use this skill when you need to score docking poses or classify

predicted binding strength. Entry points include:

interpretation.

prepared receptor.

one or more ligands.

derivation from a pocket record.

(catalytic, interface, or other functionally important residues).

Do not use when:

-> pocket-druggability.

-> compound-property-profile.

-> target-genetic-evidence.

-> protein-structure-confidence.

-> tissue-expression-profile.

2. Preconditions

coordinate file and a .pockets.json from oase pocket run.

from prepare, plus one or more ligand files (SDF, MOL, or

PDBQT). SDF/MOL ligands are converted to PDBQT automatically.

.docking_result.json written by run.

.poses.pdbqt from run and the .receptor.pdbqt from

prepare. No additional dependencies beyond what prepare and

run already require.

mk_prepare_ligand.py) and the AutoDock Vina binary. Run

oase doctor before first use.

3. Tool invocations

| Question | Run | Writes to |

|---|---|---|

| Prepare a receptor for docking | oase docking prepare <STRUCTURE> <POCKET_RECORD> | raw/docking/<stem>.receptor.pdbqt<br>raw/docking/<stem>.gridbox.json<br>raw/docking/<stem>.prepare.meta.json |

| Score a ligand against a receptor | oase docking run <RECEPTOR> <GRIDBOX> <LIGAND...> | raw/docking/<ligand_stem>.docking_result.json<br>raw/docking/<ligand_stem>.poses.pdbqt<br>raw/docking/<ligand_stem>.docking.meta.json |

| Classify poses by binding strength | oase docking analyze <DOCKING_RESULT> | raw/docking/<stem>.docking.analysis.json |

| Does a docked pose contact a named residue? | oase docking contacts <POSES_PDBQT> <RECEPTOR_PDBQT> [--cutoff N] | raw/docking/<stem>.contacts.json<br>raw/docking/<stem>.contacts.meta.json |

Three-phase workflow: run prepare before run, and run before

analyze. prepare and run produce Layer 0 artifacts; analyze

reads from disk and applies thresholds. contacts reads the poses

and receptor PDBQTs produced by run and prepare respectively;

it can run any time after run completes, independently of

analyze.

When phase-1 output lives in a non-default directory, pass --from

to analyze so it reads sidecars from that location. --out

overrides the output directory independently.

Notable options:

(default: rank 1, the top-scoring pocket).

(default: 8).

contact definition (default: 4.0).

are flagged as potential steric clashes (default: 2.0).

4. Interpretation contract

Verdicts

analyze applies the docking-scores threshold set and emits one

of:

predicted binding band (at or below the configured

strong_binding_energy threshold).

binding band (at or below moderate_binding_energy, above

strong_binding_energy).

moderate_binding_energy threshold.

The weak_binding_energy threshold is UNRESOLVED in the

docking-scores threshold set. Poses above the moderate threshold

are classified as "unclassified" — the tool declines to classify

them as weak or no-binding. Do not invent a weak binding threshold;

the source has not published one.

What the scores mean

Vina scores are computed interaction energies in kcal/mol (more

negative = stronger predicted binding). They are not measured

binding affinities — they do not correspond to Kd, Ki, or IC50

values. The docking.score_is_not_affinity relay enforces this

distinction.

Thresholds are cited by name. The values in force are in the

artifact: every .analysis.json carries threshold_set,

thresholds_applied, threshold_sources, and

threshold_provenance. Quote values from the analysis being cited,

never from prose.

Druggability-vs-affinity boundary

This skill occupies the affinity side of the boundary. The

pocket-druggability skill fires

fpocket.druggability_is_not_affinity specifically because the

binding affinity question was untooled — the stop says "if the

question is about binding or potency, the answer is that the

question is untooled." With this skill, the binding prediction

question is tooled via docking. The docking score answers the

binding prediction question, scoped by its own relay

(docking.score_is_not_affinity) as a computed interaction energy,

not a measured affinity.

Mandatory relays

| Relay code | Kind | Fires when | Obligation |

|---|---|---|---|

| docking.score_is_not_affinity | Stop | Any pose bands as strong or moderate — the over-readable result is available (claim-triggered, conditional) | Report the score as a computed interaction energy. Do not carry it as a measured binding affinity (Kd, Ki, IC50). If the question is about measured affinity, the answer is that the measurement has not been done — not that the docking score is strong. |

| docking.contact_is_not_binding_event | Qualifier (standing) | Every docking contacts run | State that the reported contacts represent geometric proximity within a static, computationally docked pose — not a confirmed binding interaction. No hydrogen-bond geometry, electrostatic complementarity, or reactive-orientation check was performed. |

Upstream relays. analyze collects upstream relays from the

prepare and run phase-1 sidecars. These originate in the

pocket-druggability pipeline. Any upstream relay present in the

analysis record must also be satisfied:

| Relay code | Kind | Origin | Obligation |

|---|---|---|---|

| fpocket.single_conformation | Qualifier | pocket-druggability | The pocket was scored on a single conformation. Carry the conformation qualifier into any binding finding. |

| fpocket.conformation_dependent | Qualifier | pocket-druggability | The structure is not established as experimental. State which conformation was docked and scope any finding accordingly. |

| fpocket.druggability_is_not_affinity | Stop | pocket-druggability | Report the pocket score as cavity geometry, not as binding evidence. With docking now tooling the affinity question, the binding prediction is answered by docking scores under docking.score_is_not_affinity, not by the druggability score. |

Check mandatory_relays in the .docking.analysis.json and in

each phase-1 .meta.json. Every relay code present must be

satisfied in the finding.

contacts emits docking.contact_is_not_binding_event as its

own relay, in addition to propagating upstream relays from the

poses and receptor sidecars (originating in receptor preparation

and pocket-druggability). Any upstream relay present in

.contacts.meta.json must be satisfied in the finding.

Residue contacts

contacts computes per-pose ligand-atom-to-receptor-residue

contact distances within a distance cutoff. For each pose in the

multi-model PDBQT, it reports every receptor residue that has at

least one atom within the cutoff distance of any ligand atom, with

the minimum distance recorded.

A sub-cutoff contact distance confirms geometric proximity in one

static computed pose. It does not confirm a binding interaction

— no hydrogen-bond geometry, electrostatics, or reactive-orientation

check is performed.

Contacts below the --min-distance threshold (default 2.0 Å) are

flagged as potential steric clashes — artifacts of rigid-receptor

docking where the receptor cannot relax around the ligand.

Contacts vs. fpocket residue membership. These are distinct

questions. fpocket identifies which residues define the pocket

(cavity geometry, no ligand present). contacts identifies which

residues the ligand actually approaches within the cutoff distance

in a docked pose. A residue can define a pocket without being

contacted by a given ligand, and a ligand can contact residues

outside the pocket definition.

Use case. Confirming or denying that a docked pose contacts a

specific named residue — catalytic triad residues, interface

residues, or other functionally important positions. This question

is answerable deterministically from the poses and receptor PDBQTs

already on disk; it does not require rendering or visualization.

Consequence rules

analysis), the threshold set, and the ligand. Proceed scoped as

computed interaction energy per docking.score_is_not_affinity.

threshold set. Moderate predicted binding; does not reach the

strong band.

When weak_binding_energy is UNRESOLVED, poses in this range are

unclassified — do not report "no binding" when the tool reported

"unclassified."

Cross-disciplinary consequences

box. A different conformation or grid box is a different experiment.

affinities — a strong computed score is a prediction, not a

measurement.

more favourably without tighter binding. Comparing scores across

ligands of substantially different sizes is misleading.

protein-structure-confidence) makes docking scores unreliable in

that region.

What this section produces

Following this contract produces a Layer 1 finding in findings/

that cites the .docking.analysis.json, satisfies every mandatory

relay that fired, names the ligand and receptor in every verdict,

and never converts a Vina score into a measured affinity. Everything

the tools emitted stays under raw/docking/.

5. Failure modes and anti-fabrication guard

Do not compute these values yourself. The value is whatever the

tool emitted. If the tool did not run, there is no value. If a

required tool is unavailable, report the task as blocked. Do not

estimate, and do not proceed on an assumed result.

Named pathologies

more van der Waals contacts and score more favourably without

tighter binding. Comparing scores across ligands of different

sizes is misleading.

structure confidence is low produces poses that reflect modelling

error, not binding.

fpocket.druggability_is_not_affinity relay fires for this; the

docking score is the binding prediction, not the druggability

score.

docking.score_is_not_affinity relay exists for this. A Vina

score is a computed interaction energy, not a measured affinity.

conformations produce different grid boxes. Scores from different

grid boxes are not directly comparable.

default exhaustiveness may miss the correct pose for complex

binding modes.

The tool pins Vina version, Meeko version, and grid box

derivation. The finding must cite the tool's output, not a

recalculation.

moderate threshold as "no binding" when the threshold has not been

established. The tool reports these as "unclassified" — do not

invent a classification the source declined to publish.

confirming whether a docked pose contacts a named residue requires

rendering or visualization. docking contacts answers this

question deterministically from the poses and receptor PDBQTs on

disk — no visual inspection needed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.