DockTDeep
Preprint: "Data-centric training enables meaningful interaction learning in protein–ligand binding affinity prediction." ChemRXiv.
💾 Installation
Using pip
Quick setup for inference. Install the package directly from PyPI:
pip install docktdeep
Using Docker
For a containerized setup that requires no Python environment:
# clone the repository (needed for the model checkpoint)
git clone https://github.com/gmmsb-lncc/docktdeep.git
cd docktdeep
# build the image and install the wrapper script
./install.sh
This installs a docktdeep command system-wide. Run it from any directory containing your data files:
docktdeep --proteins protein.pdb --ligands ligand.mol2 --output-csv results.csv
# with GPU support
docktdeep --gpu --proteins protein.pdb --ligands ligand.mol2 --output-csv results.csv
🚀 Quick start
Basic usage
Predict binding affinities for protein-ligand pairs (predictions are given in kcal/mol).
# single protein-ligand pair
docktdeep predict --proteins protein.pdb --ligands ligand.pdb --output-csv results.csv
# multiple pairs
docktdeep predict \
--proteins protein1.pdb protein2.pdb \
--ligands ligand1.pdb ligand2.pdb \
--output-csv results.csv \
--max-batch-size 16
# single protein with multiple ligands (protein auto-replicated)
docktdeep predict \
--proteins protein.pdb \
--ligands ligand1.mol2 ligand2.mol2 ligand3.mol2 \
--output-csv results.csv
# multi-mol2 file (e.g., docking output with multiple poses)
docktdeep predict \
--proteins protein.pdb \
--ligands docked_poses.mol2 \
--output-csv results.csv
# options available in help
docktdeep predict --help
⚙️ Development setup
For development and training custom models:
# clone the repository
git clone https://github.com/gmmsb-lncc/docktdeep.git
cd docktdeep
# create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate
# install deps
python -m pip install -r requirements.txt
# run tests to verify installation
python -m pytest tests/
Training models
Initialize a new aim repository for tracking experiments:
aim init
# to start the aim server
aim server
To see all available training options:
python train.py --help
Train a model with optimized hyperparameters:
python train.py \
--model Baseline \
--experiment experiment-name \
--depthwise-convs \
--adaptive-pooling \
--optim AdamW \
--max-epochs 1500 \
--batch-size 64 \
--lr 0.00087469 \
--beta1 0.25693012 \
--eps 0.00032933 \
--dropout 0.25348994 \
--wdecay 0.0000169 \
--molecular-dropout 0.06 \
--molecular-dropout-unit complex \
--random-rotation \
--dataframe-path path/to/dataframe.csv \
--root-dir path/to/data/PDBbind2020 \
--ligand-path-pattern "{c}/{c}_ligand_rnum.pdb" \
--protein-path-pattern "{c}/{c}_protein_prep.pdb" \
--split-column random_split
📝 Citation
If you use DockTDeep in your research, please cite:
@article{dasilva2025docktdeep,
title={Data-centric training enables meaningful interaction learning in protein--ligand binding affinity prediction},
author={da Silva, Matheus M. P. and Vidal, Lincon and Guedes, Isabella and de Magalh{\~a}es, Camila and Cust{\'o}dio, F{\'a}bio and Dardenne, Laurent},
year={2025}
}
Related
- DockTGrid: a python package for generating deep learning-ready voxel grids of molecular complexes. GitHub.
Metadata
Release files for docktdeep 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docktdeep-0.2.0.tar.gz | 315.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docktdeep-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 336.5 kB
Release files / docktdeep-0.2.0.tar.gz
| Download URL | docktdeep-0.2.0.tar.gz |
|---|---|
| Size | 315.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed5a8e94dd2bbe6fc6ae48b4087916d5a072ad970749cedb1ee9a475f5c620b7
|
|
BLAKE2b-256 checksum How to use checksums |
171a91da536f5064ac986217a05299419f3db9ed2056342dcae36f39043a2110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / docktdeep-0.2.0-py3-none-any.whl
| Download URL | docktdeep-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f7f1e6bdbe0c1215b4daab3963dfdee2c2adb716476b058e9196aecd9089c1d
|
|
BLAKE2b-256 checksum How to use checksums |
4fabf7a8c178f237c6b6ced465ec373fc67ed7b33313d5dd8a7919bef4614208
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|