Detect
Automatic pocket detection from a static protein structure.
This module provides the PocketDetector class, which implements the
pocket-identification pipeline:
- Load a PDB structure and strip hydrogen atoms.
- Compute the convex hull of alpha carbon positions.
- Fill the hull with a coarse grid of equidistant points, progressively refining the resolution.
- Remove grid points that clash with protein atoms.
- Filter isolated points that lack sufficient neighbors.
- Partition the remaining points into distinct pockets.
- Cluster each pocket with k-means and output encompassing spheres.