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.

Source Distribution

vina-1.2.5.tar.gz (89.5 kB view hashes)

Uploaded Source

Built Distributions

vina-1.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

vina-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

vina-1.2.5-cp39-cp39-macosx_10_9_x86_64.whl (819.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

vina-1.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

vina-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

vina-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl (819.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

vina-1.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

vina-1.2.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

vina-1.2.5-cp37-cp37m-macosx_10_9_x86_64.whl (819.0 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

vina-1.2.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

vina-1.2.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

vina-1.2.5-cp36-cp36m-macosx_10_9_x86_64.whl (818.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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