Skip to main content

Function: detectInteractions()

detectInteractions(receptorAtoms, ligandAtoms, options): Interaction[]

Defined in: src/mobjects/molecular/interactions.ts:88

Detect the non-covalent interactions between a receptor and a ligand.

Returns one Interaction per qualifying atom pair, sorted by distance (closest first). A pair that qualifies as a hydrogen bond is reported as a hydrogen bond and not also as a hydrophobic contact.

Parameters​

receptorAtoms​

Atom3DSpec[]

ligandAtoms​

Atom3DSpec[]

options​

DetectInteractionsOptions = {}

Returns​

Interaction[]