Git Product home page Git Product logo

vmdtools's Introduction

VMDTools

A bunch of utility scripts for the VMD visualization software.

Note: below is given a summary of each script. However, refer to the source file for documentation.

Download

Revision control

You can use Git software for revision control to download an updatable version of this repository. If you don't have it, install it by following the instructions at this site. Once you have it working, go to a terminal and type:

cd ../path-to-create-a-copy
git clone https://github.com/franciscoadasme/vmdtools.git

This will generate a vmdtools folder at the current location, which is under revision control. To update your local copy of the repository, execute

git pull

in your directory to fetch and merge remote changes.

Manually

  1. Click the Code green button in the repository webpage, and then Download ZIP inside the popup window.
  2. Extract the files into a folder.

To update your local copy, you have to download it again and replace the older files.

Usage

Most VMD scripts are written in the Tcl language and they usually define a bunch of functions that should be imported into the VMD session by invoking the following:

source <script>.tcl

Some scripts have command-line interface (indicated below), which can be also run as follows:

vmd -dispdev none -e <script>.tcl -args ARG1 ARG2 ARG3 ...

The documentation of command-line arguments can be read in the header of the script file.

Scripts

hbonds.tcl

Defines utility functions built upon VMD [measure hbonds ...] command to detect h-bonds and water bridges in a structure and trajectory. H-bonds are detected between two atom selections, which may be mediated by water molecules. The residues (identified by their resindex) involved in h-bonds are reported instead of individual atoms for better trackability, as atoms that form h-bonds may change during the trajectory, especially when waters are involved.

There are three main functions:

  • hbond_search for finding h-bonds in a single structure
  • hbond_traj for finding h-bonds in a trajectory
  • hbond_traj_table for printing out a table of residues involved in h-bonds in a trajectory

The following is an example of finding h-bonds in a trajectory and printing the h-bond table into a comma-separated value (.csv) file:

mol new system.pdb
mol addfile traj.dcd
set sel [atomselect top "resname LIG and resid 1"]
set other [atomselect top "protein"]
lassign [hbond_traj $sel $other -waters 2] residues hbonds
set output [open hbonds.csv w]
hbond_traj_table $output $residues $hbonds
close $output

Note that hbond_search and hbond_traj accept optional arguments (e.g., -waters) for controlling how h-bonds are detected. Refer to the script file for more information.

Contributors

Be sure to thank these contributors:

License

Licensed under the MIT license, see the separate LICENSE file.

vmdtools's People

Contributors

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