DeepRank-Ab is a geometric deep learning scoring function for ranking antibody–antigen docking models and predicting DockQ scores.
📄 Publication (preprint):
https://www.biorxiv.org/content/10.64898/2025.12.03.691974v1
This repository provides a fully automated inference pipeline from raw PDB → DockQ prediction + quality flags.
- Ensemble PDB splitting (MODEL/ENDMDL aware)
- Automatic antibody/antigen chain detection via ANARCI
- Heavy/light chain inference with fallback manual override
- Multi-chain antigen merging into a single chain
- FASTA generation (CDR + ESM formats)
- ESM-2 embeddings (esm2_t33_650M_UR50D)
- Atom-level graph construction (EGNN-ready)
- CDR annotation via ANARCI
- Region-aware graph features
- Pretrained EGNN model inference
- DockQ regression output
- Node + edge feature integration:
- Atom type, polarity, BSA, region, embeddings
- Voro area, covalent, VdW, orientation
- VdW clash detection (p01–p99 training bounds)
- Heavy–light chain contact validation
- Automatic quality flags in final CSV
git clone https://github.com/haddocking/DeepRank-Ab
cd DeepRank-Abmamba env create -f environment-gpu.yml
mamba activate deeprank-abhttps://github.com/oxpig/ANARCI
Ensure hmmscan is available.
python3 scripts/inference.py <pdb_file>python3 scripts/inference.py example/test.pdb- PDB file (single model or ensemble supported)
- Optional chain overrides:
- --heavy_chain_id
- --light_chain_id
- --antigen_chain_id
If not provided, chains are auto-detected via ANARCI.
- Workspace creation
- PDB splitting
- Chain detection
- Antigen merging
- FASTA generation
- ESM embeddings
- CDR annotation
- Graph construction
- VdW clash filtering
- Clustering
- DockQ prediction
- CSV output
- *_predictions.hdf5
- *.csv
- pdb_id
- predicted_dockq
- HL_contact_flag
- vdw_clash_flag
HL contact:
- ok
- low_HL_contacts
- not_applicable
VdW clash:
- ok
- potential_clash
- PyTorch
- BioPython
- h5py
- pandas
- numpy
- esm
- ANARCI
- EGNN
Open a GitHub issue for help.