Skip to main content

Function: bindingSiteSelection()

bindingSiteSelection(structure, radius): ParsedStructure

Defined in: src/mobjects/molecular/selection.ts:292

Select the binding site: atoms and residues within radius of any hetatm.

This isolates the pocket around a bound ligand (the hetatms). Hetatms are the reference, so they are not themselves kept by this convenience function; the result is the protein atoms that line the pocket.

Parameters​

structure​

ParsedStructure

The structure to filter.

radius​

number = DEFAULT_BINDING_SITE_RADIUS

The pocket radius in angstrom. Default: DEFAULT_BINDING_SITE_RADIUS. A radius <= 0 selects nothing.

Returns​

ParsedStructure

A new ParsedStructure with the pocket atoms and residues.