PyTorch implementation of GNINA
Project description
gnina-torch
PyTorch implementation of GNINA scoring function.
References
If you are using gnina-torch
, please consider citing the following references:
Protein-Ligand Scoring with Convolutional Neural Networks, M. Ragoza, J. Hochuli, E. Idrobo, J. Sunseri, and D. R. Koes, J. Chem. Inf. Model. 2017, 57 (4), 942-957. DOI: 10.1021/acs.jcim.6b00740
libmolgrid: Graphics Processing Unit Accelerated Molecular Gridding for Deep Learning Applications J. Sunseri and D. R. Koes, J. Chem. Inf. Model. 2020, 60 (3), 1079-1084. DOI: 10.1021/acs.jcim.9b01145
If you are using the pre-trained default2018
and dense
models from GNINA, please consider citing the following reference as well:
Three-Dimensional Convolutional Neural Networks and a Cross-Docked Data Set for Structure-Based Drug Design, P. G. Francoeur, T. Masuda, J. Sunseri, A. Jia, R. B. Iovanisci, I. Snyder, and D. R. Koes, J. Chem. Inf. Model. 2020, 60 (9), 4200-4215. DOI: 10.1021/acs.jcim.0c00411
If you are using the pre-trained default
model ensemble from GNINA, please consider citing the following reference as well:
GNINA 1.0: molecular docking with deep learning, A. T. McNutt, P. Francoeur, R. Aggarwal, T. Masuda, R. Meli, M. Ragoza, J. Sunseri, D. R. Koes, J. Cheminform. 2021, 13 (43). DOI: 10.1186/s13321-021-00522-2
Installation
The gninatorch
Python package has several dependencies, including:
A full developement environment can be installed using the conda package manager and the provided conda environment file (devtools/conda-envs/gninatorch.yaml
):
conda env create -f devtools/conda-envs/gninatorch.yaml
conda activate gninatorch
Once the conda environment is created and activated, the gninatorch
package can be installed using pip as follows:
python -m pip install .
Tests
In order to check the installation, unit tests are provided and can be run with pytest:
pytest --cov=gninatorch
Usage
Training and inference modules try to follow the original Caffe implementation of gnina/scripts, however not all features are implemented.
The folder examples
includes some complete examples for training and inference.
The folder gninatorch/weights
contains pre-trained models from GNINA, converted from Caffe to PyTorch.
Pre-trained GNINA models
Pre-trained GNINA models can be loaded as follows:
from gninatorch.gnina import setup_gnina_model
model = setup_gnina_model(MODEL)```
where MODEL
corresponds to the --cnn
argument in GNINA.
A single model will return log_CNNscore
and CNNaffinity
, while an ensemble of models will return log_CNNscore
, CNNaffinity
, and CNNvariance
.
Inference with pre-trained GNINA models (--cnn
argument in GNINA) is implemented in the gnina
module:
python -m gninatorch.gnina --help
Training
Training is implemented in the training
module:
python -m gninatorch.training --help
Inference
Inference is implemented in the inference
module:
python -m gninatorch.inference --help
Acknowledgments
Project based on the Computational Molecular Science Python Cookiecutter version 1.6.
The pre-trained weights of GNINA converted to PyTorch were kindly provided by Andrew McNutt (@drewnutt).
Copyright (c) 2021, Rocco Meli
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gninatorch-0.0.1.tar.gz
.
File metadata
- Download URL: gninatorch-0.0.1.tar.gz
- Upload date:
- Size: 37.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7682e4e75e4b6c87351127929286114162a3b4fb0691b99d8e0d0df5e2263ad5 |
|
MD5 | acfed5491e60d9eba5c42307645eaa95 |
|
BLAKE2b-256 | ccff90eac343d1b1f85151bd94bdbca2eaf80f0f53355f71af9cef6a3b52d962 |
File details
Details for the file gninatorch-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gninatorch-0.0.1-py3-none-any.whl
- Upload date:
- Size: 37.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c8a6052a04b7346f48ffb1faf562c8734e930ef088d4f58784b94d81039293 |
|
MD5 | f815f5253ce3ac2a136397f7c041ef16 |
|
BLAKE2b-256 | 783dbbb9d5913e758949eaa7421873ca01dc4680ba5a7f88970d3800b27e490c |