Skip to main content

Python interface to AutoDock Vina

Project description

AutoDock Vina - Python API

Requirements

You need, at a minimum (requirements):

  • Python (>=3.5)
  • Numpy
  • SWIG
  • Boost-cpp
  • Sphinx (documentation)
  • Sphinx_rtd_theme (documentation)

Installation (from source)

I highly recommand you to install the Anaconda distribution (https://www.continuum.io/downloads) if you want a clean python environnment with nearly all the prerequisites already installed. To install everything properly, you just have to do this:

$ conda create -n vina python=3
$ conda activate vina
$ conda install -c conda-forge numpy swig boost-cpp sphinx sphinx_rtd_theme

Finally, we can install the Vina package

$ git clone https://github.com/ccsb-scripps/AutoDock-Vina
$ cd AutoDock-Vina
$ git checkout boost-python
$ cd build/python
$ python setup.py build install

Quick tutorial

#!/usr/bin/env python

from vina import Vina


v = Vina()

v.set_receptor(rigid_pdbqt_filename="protein.pdbqt")
v.set_ligand_from_file('ligand.pdbqt')

v.compute_vina_maps(center=[0., 0., 0.], box_size=[30, 30, 30])
print(v.score())
print(v.optimize())
v.dock(exhaustiveness=32)
v.write_poses(pdbqt_filename="docking_results.pdbqt")

Full documentation

The installation instructions, documentation and tutorials can be found on readthedocs.org.

Citations

  • Trott, O., & Olson, A. J. (2010). AutoDock Vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading. Journal of computational chemistry, 31(2), 455-461.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vina, version 1.2.2
Filename, size File type Python version Upload date Hashes
Filename, size vina-1.2.2-cp36-cp36m-macosx_10_9_x86_64.whl (782.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size vina-1.2.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size vina-1.2.2-cp37-cp37m-macosx_10_9_x86_64.whl (782.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size vina-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size vina-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl (783.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size vina-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size vina-1.2.2-cp39-cp39-macosx_10_9_x86_64.whl (782.9 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size vina-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size vina-1.2.2.tar.gz (96.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page