<font size="4"><font face="verdana,sans-serif">Hi Scott and Eric,<br><br>Okay, so I suppose the problem was not using the latest version of Chimera when running dockprep.py. I now correctly get "dp.mol2" written to the working directory.<br>
Now, I am just confused to where this puts me in the 4-step process. In the tutorial, this .mol2 file should correspond to everything up to and including step 1g in the tutorial.<br>dp.mol2 has hydrogens in it, which need to be stripped away.<br>
<br>I have a some new questions then:<br><br>1. I need to take dp.mol2, and make rec_noH.pdb from it. Is there a quick, easy way to do this with Chimera? e.g. open dp.mol2, strip the hydrogens, and save the results as a .pdb file? I see this commented-out code from ligprep.py could be useful:<br>
<br>#runCommand('select H')<br>#runCommand('delete sel')<br><br>And also this "write" command:<br><br><a href="http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/write.html#options">http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/write.html#options</a><br>
<br>But how do I get python to use that "write" command? I don't understand why there is a "write" command here, but there is a totally separate python module "WriteMol2" just for writing .mol2 files. There is no "WritePDB."<br>
<br>2. I looked at the ligprep.py script, but I don't understand how to run it yet. First, where do you specify the input file? And what format does it have to be in? Also, there is some commented out code up top:<br>
<br># $HOME/chimera/1.2470/bin/chimera --nogui ligprep.py<br><br>Is that just the command for running it from the terminal? It has no inputs specified, so the input file appears to be "start.sdf". Am I understanding this correctly? I am just confused because in the original message, the person wanted to loop over many files, but as this ligprep.py script is written, I don't see how any looping could be done since the input file is hard-coded to be "start.sdf".<br>
<br>3. In the case of 2H4F, I have more than one ligand. I want to keep the large peptide fixed (it has a long lysine pointing into the center of the enzyme), but NAD is what I want to dock. How would I tell Chimera/Python to choose NAD for ligand preparation?<br>
4. The module "chimera" needs to be imported. However, I have three versions of Chimera on my computer: 1.5.3, 1.6, and 1.6.1. How will the Python import command know to go into the 1.6.1 directory to find the correct, up-to-date module files? Just adding the /chimera/share folder to the python path should work, right?<br>
5. Is there a special procedure for deleting the other Chimera versions, or just trash them?<br><br>All the best, and thank you so much for your help,<br><br>-Brad<br></font></font><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 11:23 PM, Scott Brozell <span dir="ltr"><<a href="mailto:sbrozell@rci.rutgers.edu">sbrozell@rci.rutgers.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
In addition to Eric's comments;<br>
4) This post has a ligand prep script:<br>
<a href="http://mailman.docking.org/pipermail/dock-fans/2011-December/002591.html" target="_blank">http://mailman.docking.org/pipermail/dock-fans/2011-December/002591.html</a><br>
<br>
5) Can you find and look at sqm.out ??<br>
<br>
6) Just as further evidence that NAD is tractable; see<br>
dock6/parameters/leap/parm/ndp.*<br>
(and again this is antechamber circa 2006).<br>
<font color="#888888"><br>
<br>
scott<br>
</font><div><div></div><div class="h5"><br>
On Fri, Mar 16, 2012 at 02:37:54PM -0700, Eric Pettersen wrote:<br>
> Hi Brad,<br>
> Well, a few things:<br>
><br>
> 1) From your output I can tell that you are using an old version of<br>
> Chimera. You should upgrade to the latest version (1.6.1) which<br>
> includes a more recent version of antechamber with latest bug fixes.<br>
><br>
> 2) I cannot get Chimera to fail on NAD (including old versions of<br>
> Chimera). Does DockPrep work if you use it on 2h4f in regular,<br>
> non-"nogui" mode? How about if you use it on 2gbp? Also, do you even<br>
> want NAD present in the receptor when you attempt docking?<br>
><br>
> 3) You couldn't possibly bring up the reply log in nogui mode since it<br>
> creates a window. It's irrelevant anyway since the reply log output<br>
> is the stuff you are already seeing on standard output (it only goes<br>
> into the reply log in gui mode). For posterity, the syntax you would<br>
> have used to start the reply log is: --start "Reply Log".<br>
><br>
> 4) You would likely prep the ligand separately, yes.<br>
><br>
> I am taking chimera-users off the reply-to for this, since I doubt<br>
> most subscribers will be interested in the minutiae of this problem.<br>
><br>
> --Eric<br>
><br>
> On Mar 16, 2012, at 12:35 PM, Brad Ridder wrote:<br>
><br>
> >Hi Eric,<br>
> ><br>
> >I tried the dockprep.py file you pointed to me a few emails ago. It<br>
> >seems like its exactly what I am looking for. The only problem is I<br>
> >get an error at the moment; I also have two other questions about it.<br>
> ><br>
> >ep.py file you pointed to me a few emails ago. It seems like its<br>
> >exactly what I am looking for. The only problem is I get an error at<br>
> >the moment; I also have two other questions about it.<br>
> ><br>
> >Here is the command I used:<br>
> ><br>
> >./chimera --nogui pdb:2h4f $DESKTOP/dockprep.py<br>
> ><br>
> >The program then returns a bunch of text on what its doing. When<br>
> >adding the charges to the ligands with the AM1-BCC method is when<br>
> >the error pops up. Here is the (slightly abridged) error message,<br>
> >plus a few lines back:<br>
> ><br>
> >Running ANTECHAMBER for residue NAD<br>
> >Running ANTECHAMBER command: /home/abhay/Desktop/rcg-research/<br>
> >personal-work/CHIMERA/bin/amber11/bin/antechamber -ek<br>
> >qm_theory='AM1', grms_tol=0.02, tight_p_conv=0, scfconv=1.d-10, -i /<br>
> >tmp/tmplP08co/ante.in.mol2 -fi mol2 -o /tmp/tmplP08co/ante.out.mol2 -<br>
> >fo mol2 -c bcc -nc -1 -j 5 -s 2<br>
> ><br>
> >(NAD) Total number of electrons: 344; net charge: -1<br>
> ><br>
> >(NAD) Running: /home/abhay/Desktop/rcg-research/personal-work/<br>
> >CHIMERA/bin/amber11/bin/sqm -O -i <a href="http://sqm.in" target="_blank">sqm.in</a> -o sqm.out<br>
> ><br>
> >(NAD) Error: cannot run "/home/abhay/Desktop/rcg-research/personal-<br>
> >work/CHIMERA/bin/amber11/bin/sqm -O -i <a href="http://sqm.in" target="_blank">sqm.in</a> -o sqm.out" of bcc()<br>
> >in charge.c properly, exit<br>
> ><br>
> >(NAD) Running: /home/abhay/Desktop/rcg-research/personal-work/<br>
> >CHIMERA/bin/amber11/bin/bondtype -j part -i<br>
> >ANTECHAMBER_BOND_TYPE.AC0 -o <a href="http://ANTECHAMBER_BOND_TYPE.AC" target="_blank">ANTECHAMBER_BOND_TYPE.AC</a> -f ac<br>
> ><br>
> >(NAD) Running: /home/abhay/Desktop/rcg-research/personal-work/<br>
> >CHIMERA/bin/amber11/bin/atomtype -i ANTECHAMBER_AC.AC0 -o<br>
> ><a href="http://ANTECHAMBER_AC.AC" target="_blank">ANTECHAMBER_AC.AC</a> -p gaff<br>
> ><br>
> >Error while processing /home/abhay/Desktop/dockprep.py:<br>
> >Failure running ANTECHAMBER for residue NAD<br>
> >Check reply log for details<br>
> ><br>
> >I am not sure what the problem is. $AMBERHOME and $DOCK_HOME are not<br>
> >defined, but that only seemed to cause problems before. Perhaps they<br>
> >need to be defined now?<br>
> >I would give you the reply log, but I don't know how to find it. I<br>
> >tried using:<br>
> ><br>
> >$ ./chimera --start Reply_Log --nogui pdb:2h4f $DESKTOP/dockprep.py<br>
> ><br>
> >I also tried reply_log, Reply_log, reply_Log, ReplyLog, replyLog,<br>
> >Replylog, and transposing --start and --nogui. None of those worked<br>
> >either. The program immediately returns:<br>
> ><br>
> >Starting extension 'Reply_Log' failed (or whatever the pertinent<br>
> >permutation of "reply_log" happens to be.)<br>
> ><br>
> >Assuming this can be fixed easily, I have one more question: this<br>
> >appears to only prepare the receptor for docking. What about<br>
> >prepping the ligand? Does that need its own new script?<br>
> ><br>
> >Thank you so much for your help,<br>
> ><br>
> >-Brad<br>
> ><br>
> >On Wed, Feb 29, 2012 at 7:08 PM, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>><br>
> >wrote:<br>
> >This previous posting to the dock-fans list seems to be more<br>
> >directly pertinent:<br>
> ><br>
> ><a href="http://mailman.docking.org/pipermail/dock-fans/2007-May/001043.html" target="_blank">http://mailman.docking.org/pipermail/dock-fans/2007-May/001043.html</a><br>
> ><br>
> >--Eric<br>
> ><br>
> > Eric Pettersen<br>
> > UCSF Computer Graphics Lab<br>
> > <a href="http://www.cgl.ucsf.edu" target="_blank">http://www.cgl.ucsf.edu</a><br>
> ><br>
> >On Feb 29, 2012, at 2:47 PM, Trent E. Balius wrote:<br>
> ><br>
> >>Hi Brad,<br>
> >><br>
> >>I am cc'ing this to the chimera list.<br>
> >><br>
> >>I think that you should write a python script to run DOCK prep on<br>
> >>the command line. See the following:<br>
> >><br>
> >><a href="http://www.cgl.ucsf.edu/pipermail/chimera-dev/2011/000784.html" target="_blank">http://www.cgl.ucsf.edu/pipermail/chimera-dev/2011/000784.html</a><br>
> >><br>
> >>For other example scripts see the following:<br>
> >><br>
> >><a href="http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-February/003539.html" target="_blank">http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-February/003539.html</a><br>
> >><br>
> >>You should not have to specify the AMBERHOME path. This is done<br>
> >>internally to chimera.<br>
> >><br>
> >>as an aside, It is unnecessary to run antichamber with sudo.<br>
> >><br>
> >>I hope this helps,<br>
> >><br>
> >>Trent E. Balius<br>
> >>Graduate Student, Rizzo Group,<br>
> >>Department of Applied Mathematics and Statistics,<br>
> >>Stony Brook University.<br>
> >>Office: Math Tower 3-129, Phone: <a href="tel:%28631%29%20632-8519" value="+16316328519">(631) 632-8519</a><br>
> >>URL: <a href="http://www.ams.sunysb.edu/%7Etbalius/" target="_blank">http://www.ams.sunysb.edu/~tbalius/</a><br>
> >><br>
> >><br>
> >>-----Original Message-----<br>
> >>From: Brad Ridder <<a href="mailto:clustro@gmail.com">clustro@gmail.com</a>><br>
> >>To: dock-fans <<a href="mailto:dock-fans@docking.org">dock-fans@docking.org</a>><br>
> >>Sent: Wed, Feb 29, 2012 4:38 pm<br>
> >>Subject: [Dock-fans] Help with antechamber<br>
> >><br>
> >>Hi Dockfans,<br>
> >><br>
> >>My name is Brad; I am a grad student in the dept. of chemical<br>
> >>engineering at Purdue University.<br>
> >><br>
> >>We are experimenting with DOCK for various drug discovery work. At<br>
> >>the moment, I am trying to do execute all of the "dock prep"<br>
> >>commands through the Terminal, since it is not practical to do<br>
> >>large volumes of Dock Prep by hand through the CHIMERA GUI.<br>
> >><br>
> >>Corresponding to what is in the DOCK tutorial, I am on "Receptor<br>
> >>and Ligand Preparation." I got reduce to work, in order to add<br>
> >>hydrogens.<br>
> >><br>
> >>Now, I am trying to get antechamber to work, in order to add the<br>
> >>charges, but it is not working. Here is the command I am running:<br>
> >><br>
> >>sudo ./antechamber -i $DESKTOP/3GLR.pdb -fi pdb -o $DESKTOP/<br>
> >>3GLRcharged.mol2 -fo mol2<br>
> >><br>
> >>Which returns the error:<br>
> >><br>
> >>Warning: $AMBERHOME and $DOCK_HOME enviornment strings are not set,<br>
> >>use "mopac.sh" in the work directory<br>
> >><br>
> >>Cannot open CONNECT.TPL , exit<br>
> >>The atom number exceeds the MAXATOM, reallocate memory<br>
> >><br>
> >>I looked around in the dock6 directory, and found a folder called<br>
> >>"parameters/antechamber", which contains CONNECT.TPL. I figured<br>
> >>this is what should be the $AMBERHOME directory.<br>
> >>For DOCK_HOME, I figured it should be the dock6 folder.<br>
> >><br>
> >>Here is what I have in my .bash_profile file in my home folder.<br>
> >><br>
> >>export AMBERHOME='/home/.../DOCK6.5/dock6/parameters/antechamber'<br>
> >>export DOCK_HOME='/home/.../DOCK6.5/dock6'<br>
> >><br>
> >>I also tried using the "amber11" folder that comes with CHIMERA as<br>
> >>AMBERHOME, but to no effect.<br>
> >><br>
> >>I don't actually have AMBER installed on my computer, but since<br>
> >>CHIMERA can add charges without actually requiring the purchase of<br>
> >>AMBER, I do not think that is the problem.<br>
> >><br>
> >>I did not know what to do with "mopac.sh." I ran the script, but it<br>
> >>says it needs input files.<br>
> >><br>
> >>What am I doing wrong that is preventing antechamber from executing<br>
> >>correctly?<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Bradley James Ridder<br>Chakrabarti Group<br>Graduate Student<br>School of Chemical Engineering<br>Purdue University<br><br><br>