Revision:
Today: Second major update.
2005-12-10: First major update.
2005-11-30: Original post.
The pyMol part of this document is based on Dr. James Stroud's howto. Therefore the license of this document also has to be in the public domain. Also please be noted that we have only optimized and tested this page on Safari and Firefox.
AMBER/PBSA under AMBER 9 package
PyMol is a full featured open source molecular graphics program by Dr. Warren Delano of Delano Scientific. The PyMol website is http://pymol.sf.net. Also be sure to download recent version of pymol to make sure that no endian issue is involved (byte-order differences between MIPS, PPC and x86 machines).
VMD: We are not sure at this point why VMD's grd plugin is no working on our example. (probably due to the OpenGL issues)
This page has been tested with PyMol 0.98 on Mac OS X 10.4.3, on Irix 6.5, on Fedora Core 4 Linux and PyMol 0.96 on Windows XP.
#!/bin/sh
cat $1 | grep -v -e 'H1 WAT' -e 'H2 WAT' \
-e 'O WAT' -e '^ATOM ...... .H' -e '^ATOM ...... .LP' \
-e '^ATOM ...... H.' -e '^HETATM' -e '^CONECT'
#Please note that getting rid of CONECT is not for every case.
#"grep -v -e" trick was provided by isomer(clive).
% ./removeH.sh 1HVR.pdb > 1hvr_noH.pdbPlease read the fine manual of any kind of unix to find out why.
% tleap -f $AMBERHOME/dat/cmd/leaprc.ff99 -f tleap.scriptwhere tleap.script is
tmp = loadpdb 1hvr_noH.pdb saveAmberParm tmp 1hvr.top 1hvr.crd quitPlease refer to your fine AMBER manual.
Test of PB reaction field on protein 1HVR and output phimap &cntrl ntx=1, irest=0, imin=1, ntmin=2, maxcyc=0, ntpr=1, igb=10, ntb=0, ntc=1, ntf=1, tol=0.000001, / &pb npbverb=1, istrng=0, epsout=80.0, epsin=1.0, space=1., accept=0.001, sprob=1.4, cutnb=9, phiout=1, phiform=0 /Run:
$ pbsa -O -i pbsa.in -c 1hvr.crd -p 1hvr.top -o 1hvr.outor
$ sander -O -i pbsa.in -c 1hvr.crd -p 1hvr.top -o 1hvr.outfor current version of sander in AMBER 9.
PyMol> load 1hvr_noH.pdbor use the menu "File" -> "Open..." to locate the file (screenshot). Before you doing that, you might want to change the current directory to the path you want to store those data files, like,
PyMol> cd /Users/mjhsieh/Desktopthat saves you a lot of typing.
PyMol> load 1hvr.top PyMol> load 1hvr.crdPlease note that parameter filename has to be *.top and coordinate filename has to be *.crd for PyMol to be able to recognize it.
: click "S" and then select surface. (screenshot)PyMol> show surface, 1HVR
PyMol> set solvent_radius, 2.0Of course this command can be done through GUI, check the menu "Setting --> Edit All..."
PyMol> load pbsa.phiThis grid is now an object in your PyMol menu called "pbsa". Of course you can use the menu to open this file. (screenshot, screenshot)
PyMOL> ramp_new e_lvl, pbsa, [-7, 0, 7]This color ramp is now an object in your PyMol menu called "e_lvl". (screenshot)
PyMOL> set surface_color, e_lvl, 1HVR(screenshot)
PyMOL> ramp_new e_lvl, pbsa, [-5, 0, 5]If the color doesn't update upon the procedure, just redo
PyMOL> set surface_color, e_lvl, 1HVR
PyMol> rebuild
PyMOL> rayor press the "Ray" button.
PyMOL> png my-picture.pngor "File" -> "Save image..."
Hello, For the massive grep -v, you may would like to take a look on http://spaces.msn.com/emitevil/blog/cns!A115F40F4615AF98!297.entry
Ah-ha, I was going to update this entry at the time I read your entry. Lazy me. :p