Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AE-PocketMiner — Cryptic Pocket & Allosteric Coupling Prediction

An AI method for simultaneously predicting cryptic binding pockets and their allosteric coupling to the rest of the protein from a single input structure, using an attention-enabled Geometric Vector Perceptron graph neural network.

AE-PocketMiner model architecture
Figure 1. AE-PocketMiner model architecture.


Table of contents


Installation

We provide a tested conda environment file, which requires Linux and a GPU. With Miniconda or Mambaforge installed, run:

# Clone the repository
git clone https://github.com/bowman-lab/ae-pocketminer.git
cd ae-pocketminer

# Create and activate the environment (mamba is faster than conda)
mamba env create -f environment.yml   # will take 5-10 mins
conda activate aepocketminer

If you run into issues, also check the installation notes in the PocketMiner repository, since the package dependencies are essentially the same.


Local prediction

For most users, we recommend trying the PocketMiner web interface first — no installation required. (Note: this currently serves the PocketMiner model; a version pointing to AE-PocketMiner is coming soon.)

To run predictions locally instead, place your PDB file(s) in the inputs/ folder and run xtal_predict.py directly.

mkdir -p inputs 
cp your_protein.pdb inputs/

python src/xtal_predict.py src/example_config.yaml

Output files are written to results/aepocketminer/:

  • results/*/your_protein-preds.npy — per-residue pocket probabilities (1 x N)
  • results/*/your_protein-attention_weights.npy — attention weight matrix (N x N)

To write a PDB with B-factors set to pocket probability (for PyMOL visualisation):

python src/write_bfactor_pdb.py \
    --pdb-name  your_protein \
    --results-dir results/aepocketminer

To get allosteric predictions, provide the residue numbers of a cryptic pocket (known or predicted — e.g., 10 14 15) and run the command below. This outputs 1) the top 40 residues influencing this cryptic pocket, and 2) a PDB with B-factors set to attention wieghts relative to this cryptic pocket (for PyMOL visulisation):

python src/find_key_attention_residues.py \
    --pdb inputs/your_protein.pdb \
    --attention-weights results/aepocketminer/your_protein-attention_weights.npy \
    --pocket-resnums 10 14 15 \
    --top-n 40 \
    --output-pdb results/aepocketminer/your_protein-attn_Bfactor.pdb

You can also use PocketMiner instead of AE-PocketMiner in these scripts to generate predictions. The key practical difference is that PocketMiner predicts per-residue cryptic pocket probabilities only, with no allosteric predictions (i.e., no attention_weights.npy is generated). To do so, use the following settings in src/example_config.yaml:

nn_path: /path/to/ae-pocketminer/models/pocketminer
use_attention: False  

Training

AE-PocketMiner was sequentially trained on two types of simulation labels: those derived from LIGSITE, and those derived from fpocket. Please refer to our paper for more detail. If you decide to retrain the model or extend this work, you can follow the steps below.

1. LIGSITE labels

python src/train_xtal_predictor.py src/training-yaml-files/train_ligsite_bigdataset_attn.yaml

This trains the base model using LIGSITE-derived labels from sampled structures. Training data arrays (X and y) are loaded from data/task2/ as numpy .npy files, following the same format as the original repo. Using train_ligsite_orignal.yaml instead of train_ligsite_bigdataset_attn.yaml, you can retrain PocketMiner instead. (For convenience, we provide this script for both PocketMiner and AE-PocketMiner.)

2. fpocket refinement

python src/train_fpocket_drug_score_labels.py *.yaml

This fine-tunes the previous checkpoint using fpocket druggability score labels, which incorporate both pocket geometry and chemical environment.

Both checkpoints are stored in models/ — PocketMiner's is copied over from the original repo, while AE-PocketMiner's is the one trained above.


Training data

Training data are stored as numpy arrays under data/, using the same conventions as the PocketMiner repository:

data/
  task2/
    X-train-*.npy        # structure/trajectory references for LIGSITE training
    y-train-*.npy        # LIGSITE pocket labels
    X-train-fpocket-*.npy   # structure references for fpocket training
    y-train-fpocket-*.npy   # fpocket druggability score labels
  pm-dataset/
    val*.npy / test*.npy    # validation and test dataset

Background

AE-PocketMiner is a new model developed in the Bowman Lab that predicts both cryptic binding pockets and allosteric coupling from a single protein structure. It uses the GVP-GNN from PocketMiner as a protein embedding backbone — chosen for its proven performance in pocket prediction — and adds an attention mechanism to capture long-range residue–residue dependencies. For full details on the architecture, training data, and benchmarking, see our paper: https://doi.org/10.64898/2026.05.21.726899

The GVP source files in src/ are adapted from the PocketMiner codebase with modifications to incorporate the attention layers. For the original model and GVP-GNN methodology, see:

PocketMiner repository: 👉 https://github.com/Mickdub/gvp/tree/pocket_pred

Meller, A., Ward, M., Borowsky, J. et al. Predicting locations of cryptic pockets from single protein structures using the PocketMiner graph neural network. Nature Communications, 14, 1177 (2023). https://doi.org/10.1038/s41467-023-36699-3


Citation

If you use AE-PocketMiner in your research, please cite: https://doi.org/10.64898/2026.05.21.726899


License

Released under the MIT License — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages