durrantlab / wisp

WISP is a trajectory analysis tool that calculates and visualizes allosteric pathways.
https://durrantlab.github.io/wisp/
Academic Free License v3.0
3 stars 0 forks source link

WISP

Calculate and visualize allosteric pathways from molecular trajectories.

Documentation

Build Status PyPI - Python Version codecov GitHub release (latest by date) License GitHub repo size Black style Black style

Installation

First, you must obtain the WISP code by cloning the GitHub repository

git clone https://github.com/durrantlab/wisp && cd wisp

and installing with the following command.

pip install .

This will install the wisp Python package in addition to the wisp command-line tool.

TODO: check that the VMD plugin installation works.

  1. To use the VMD plugin, add these two lines of code to your .vmdrc file (usually located in your ~/ directory)
    • set auto_path "$auto_path <your directory here>" ; #(NOTE: this may require the full pathname)
    • vmd_install_extension wisp wisp_tk_cb "Analysis/Wisp"
  2. Now open VMD: Click Extensions > Analysis > WISP

Usage

You may use the wisp command-line interface as shown below.

wisp tests/files/trajectory_20_frames.pdb --source_residues C_LEU_10 --sink_residues C_ASP_11

Or, you may use wisp as a library in Python.

from wisp.run import run_wisp
from wisp.contexts import ContextManager

# Update context
context_manager = ContextManager()
context_manager.pdb_path = "tests/files/trajectory_20_frames.pdb"
context_manager.source_residues = ["C_LEU_10"]
context_manager.sink_residues = ["C_ASP_11"]

# Run wisp
paths = run_wisp(context_manager)

Program Output

The output directory contains multiple output files. The best way to visualize the output is to use a free program called VMD, which can be downloaded from http://www.ks.uiuc.edu/Research/vmd/.

The WISP output can be automatically loaded into VMD using the TCL script named visualize.tcl. Assuming vmd is the full path to your installed VMD executable, just run the following from the command line:

vmd -e visualize.tcl

If you prefer not to use the command line, simply run the vmd executable and load the visualize.vmd file using "File->Load Visualization State..." from the main menu.

The above methods are very slow. If your output is so large that a faster option is required, the Tk Console can be used. Use "Extensions->Tk Console" from the VMD main menu to pull up the Tk Console. Then run the following command, with the full path to visualize.tcl included if necessary:

source visualize.tcl

Regardless of the method you use to load in the WISP output, the visualization will be the same. Individual pathways are shown as tubes (i.e., "wisps"), the protein is shown in ribbon representation, and protein residues that participate in any path are shown in licorice representation.

The WISP output directory contains a number of other files as well. Here are descriptions of each:

Deploying

We use bump-my-version to release a new version. This will create a git tag that is used by poetry-dynamic-version to generate version strings and update CHANGELOG.md.

For example, to bump the minor version you would run the following command.

poetry run bump-my-version bump minor

After releasing a new version, you need to push and include all tags.

git push --follow-tags

Citation

If you use WISP in your work, please cite:

A.T. Van Wart, J.D. Durrant, L. Votapka, R.E. Amaro. Weighted implementation of suboptimal paths (WISP): An optimized algorithm and tool for dynamical network analysis, J. Chem. Theory Comput. 10 (2014) 511-517

License

It is licensed under the Academic Free License 3.0.