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.

Project details


Download files

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

Source Distribution

vina-1.2.0.dev3.tar.gz (96.8 kB view hashes)

Uploaded Source

Built Distributions

vina-1.2.0.dev3-cp39-cp39-manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.9

vina-1.2.0.dev3-cp39-cp39-macosx_10_9_x86_64.whl (960.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

vina-1.2.0.dev3-cp38-cp38-manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.8

vina-1.2.0.dev3-cp38-cp38-macosx_10_9_x86_64.whl (750.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

vina-1.2.0.dev3-cp37-cp37m-manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.7m

vina-1.2.0.dev3-cp37-cp37m-macosx_10_9_x86_64.whl (750.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

vina-1.2.0.dev3-cp36-cp36m-manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.6m

vina-1.2.0.dev3-cp35-cp35m-manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.5m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page