Metadata-Version: 2.4
Name: vina
Version: 1.2.6
Summary: Python interface to AutoDock Vina
Home-page: https://ccsb.scripps.edu/
Author: Diogo Santos Martins, Jerome Eberhardt, Andreas F. Tillack, Stefano Forli
Author-email: forli@scripps.edu
License: Apache-2.0
Classifier: Environment :: Console
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.18
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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:
```bash
$ 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
```bash
$ git clone https://github.com/ccsb-scripps/AutoDock-Vina
$ cd AutoDock-Vina/build/python
$ python setup.py build install
```

### Quick tutorial
```python
#!/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](https://autodock-vina.readthedocs.io/en/latest/).

### 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.
