Giter Site home page Giter Site logo

vina_demo's Introduction

vina_demo

A demo and tutorial for Autodock Vina

Setup

If you haven't already, install the latest version of the Anaconda Python distribution conda, or miniconda.

NOTE: The installation package is a large *.sh file [https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh]. You can either download this to your local machine and scp to Owlsnest, or download it directly using wget.

Create a conda environment for the vina work

conda create --name vina
conda activate vina

And install the following packages:

  • bioconda
  • mgltools
  • openbabel
  • zlib
  • pandas
conda install -c conda-forge -c bioconda mgltools openbabel zlib --yes

conda install pandas

If you don't already have wget installed (use which wget to check), install it:

pip install wget

Next Steps

NOTE: For each of these steps, make sure to read the contents of each script before you run the script. This way, you will know what is going on, and can debug if something goes wrong.

  1. Follow the instructions in the runme_setup document to prepare the receptor
  2. Prepare the ligands using python prepare_ligands.py
  3. Dock the ligands using python docking.py (IMPORTANT! This step should be run interactively on one of the nodes of Owlsnest, see below)
  4. Visualize the docking results in ChimeraX (scp the receptor.pdbqt and [ligand]_out.pdbqt files to your personal computer to view them)
  5. Analyze the Vina score vs. RMSD-to-xtal using python analysis.py (NOTE: this script downloads and uses a tool called DockRMSD from the Zhang group at University of Michigan to compute RMSD for molecules with symmetry or permuted atom orders.)

Running interactively on Owlsnest

Running any program that requires substantial computational resources is NOT ALLOWED on Owlsnest. This applies to our docking calculations as well. Since we're only docking ligands, the overall runtime should be short. In this case, we can submit an interactive job on the normal queue, using

qsub -I -q normal

This command will submit a queued shell job, and allow you to interact within it for up to 30 minutes (the docking should take less than a minute). When you are logged into the node, you will be back in your $HOME directory, and in your base conda environment. You will need to change back to your working directory and activate your 'vina' conda environment like so:

cd ~/work/git/vina_demo   # or wherever your work is
conda activate vina

You now can continue to run scripts on the command line. The jobs will run on the queued node, not the login node.

To exit the interactive job, use

exit

References

Full documentation of AutoDock Vina can be found here: https://autodock-vina.readthedocs.io/

Heavily inspired by https://colab.research.google.com/github/pb3lab/workshops/blob/main/tutorials/spb2022/D1_Tutorial2.ipynb#scrollTo=LRlv9MqoCC19

vina_demo's People

Contributors

vvoelz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.