<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV></DIV>
<DIV>&gt;From: "David Mobley" &lt;dmobley@gmail.com&gt;<BR>&gt;Date: Fri, 12 May 2006 10:05:55 -0700<BR>&gt;Subject: Re: [gmx-users] Re: Re: angle restraints</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>
<DIV>&gt;Maarten,<BR><BR>&gt;So you are saying that lambda is just controlling the restraints and<BR>&gt;nothing else? That is, you are using lambda-dependent angle<BR>&gt;restraints? If this is the case, the problem is the "fix" for the bug<BR>&gt;that I referred you, as implemented in 3.3.1. From the "bugzilla"<BR>&gt;page, here's the fix:<BR></DIV>
<DIV>yes, and I fixed it already.</DIV>
<DIV><BR>&gt;&gt;This was a nasty bug.<BR>&gt;&gt;The problem was that the angle-restraint parameters were stored<BR>&gt;&gt;incorrectly in the tpr file.<BR>&gt;&gt;I have fixed it completely in the CVS.<BR>&gt;&gt;I also made a fix for 3.3.1, but there the B-state parameters<BR>&gt;&gt;are always copied from the A-state.<BR><BR>&gt;In other words, in 3.3.1, the claim is that angle restraint parameters<BR>&gt;can't be made to be lambda-dependent; B state and A state parameters<BR>&gt;are the same. I am confused why you would be getting a nonzero<BR>&gt;dv/dlambda at all in this case.<BR>&gt;According to Berk, the angle restraints have the correct lambda<BR>&gt;dependence in the CVS version. So if you are really intent on doing<BR>&gt;things this way (that is, using lambda-dependent angle restraints) you<BR>&gt;may want the CVS version.<BR></DIV>
<DIV>Correct, but I made some changes to ensure correct storing of values in the tpr file. Correct me if I am wrong, but the storage of these values only occurs during the generation of a tpr file with grompp.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am not sure if there are other bugs in the angle restraints value. If so this might explain why the dG/dl crosses zero. I do not understand it otherwise.</DIV>
<DIV><BR>&gt;Alternatively, you can do what I do, which is run simulations using<BR>&gt;normal (non-lambda dependent) angle restraints with a bunch of<BR>&gt;different spring constants, rather than using the free energy code.<BR>&gt;Think of the spring constant like lambda. Then dV/dlambda=d(restraint<BR>&gt;energy)/dK, where K is the spring constant. For harmonic restraints,<BR>&gt;this is (restraint energy)/K. So you can compute dV/dlambda yourself<BR>&gt;from the energies that are output by just taking the angle restraint<BR>&gt;energy and dividing by the spring constant.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks, I will try this as well. It should be sufficient for my goal.<BR><BR>&gt;Again, I'm still not clear that this is exactly what you're trying to<BR>&gt;do. As far as I can tell if your only lambda dependence is in the<BR>&gt;angle restraints, and you are using 3.3.1, you should be getting a<BR>&gt;dv/dlambda that is zero everywhere, unless you've done something<BR>&gt;strange like turning on soft core potentials or something.<BR><BR>&gt;David<BR><BR><BR>On 5/11/06, Maarten Wolf &lt;maarten_wolf@yahoo.co.uk&gt; wrote:<BR>&gt;<BR>&gt; David,<BR>&gt;<BR>&gt; Thanks for your reply.<BR>&gt;<BR>&gt; I am currently using 3.3.1 code.<BR>&gt;<BR>&gt; I am increase the force, to be able to calculate the free energy<BR>&gt; required of introducing the angle restraints in the system. I use small<BR>&gt; force increments each run, using a delta_lambda of 0.<BR>&gt;<BR>&gt; Decreasing or increasing in my view only changes the sign of the<BR>&gt; overall graph, but it should
 not allow dG/dl to cross zero.<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Maarten<BR>&gt;<BR>&gt; &gt; &gt; From: "David Mobley" &lt;dmobley@gmail.com&gt;<BR>&gt; &gt; To: "Discussion list for GROMACS users" &lt;gmx-users@gromacs.org&gt;<BR>&gt; &gt; Date: Thu, 11 May 2006 09:34:28 -0700<BR>&gt; &gt; Subject: Re: [gmx-users] angle restraints<BR>&gt; &gt;<BR>&gt; &gt; Maarten,<BR>&gt; &gt;<BR>&gt; &gt; What version of the code are you using? There was a bug in the angle<BR>&gt; &gt; restraints code until 3.3.1 (or 3.3 cvs) which caused angle<BR>&gt; &gt; restraints<BR>&gt; &gt; to turn off gradually as a function of lambda in free energy<BR>&gt; &gt; calculations, if I remember correctly. (See bugzilla for details:<BR>&gt; &gt; <A href="http://bugzilla.gromacs.org/show_bug.cgi?id=43" target=_blank>http://bugzilla.gromacs.org/show_bug.cgi?id=43</A>).<BR>&gt; &gt;<BR>&gt; &gt; However, I'm not sure that relates to the problem you're describing,<BR>&gt; &gt; but it probably does,
 depending on the version you are using.<BR>&gt; &gt;<BR>&gt; &gt; What exactly are you changing in the free energy calculation? Are you<BR>&gt; &gt; changing the angle restraint as a function of lambda? If so, which<BR>&gt; &gt; way<BR>&gt; &gt; are you changing it? Decreasing or increasing restraints?<BR>&gt; &gt;<BR>&gt; &gt; David<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; On 5/11/06, Maarten Wolf &lt;maarten_wolf@yahoo.co.uk&gt; wrote:<BR>&gt; &gt; &gt; Dear users,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; I have a small system with a number of small peptides. I want to<BR>&gt; &gt; &gt; constraint the angle between the N-term to C-term vectors of<BR>&gt; &gt; different<BR>&gt; &gt; &gt; peptides. This works well, but if I do a FEP calculation the dG/dl<BR>&gt; &gt; &gt; becomes smaller than zero at some point.<BR>&gt; &gt; &gt; I expected it to be at least allways greater than zero (zero in the<BR>&gt; &gt; &gt; limit that the restraint does not have to do
 anything), since a<BR>&gt; &gt; force<BR>&gt; &gt; &gt; has to be aplied to restraint the angles.<BR>&gt; &gt; &gt; Can anybody explain where I am going wrong?<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Thanks<BR>&gt; &gt; &gt; Maarten<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Send instant messages to your online friends<BR>&gt; &gt; <A href="http://uk.messenger.yahoo.com/" target=_blank>http://uk.messenger.yahoo.com</A><BR>&gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; &gt; gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;gmx-users@gromacs.org<BR>&gt; &gt; &gt; <A href="http://www.gromacs.org/mailman/listinfo/gmx-users" target=_blank>http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR>&gt; &gt; &gt; Please don't post (un)subscribe requests to the list. Use the<BR>&gt; &gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<BR>&gt; &gt; &gt; Can't post? Read <A href="http://www.gromacs.org/mailing_lists/users.php"
 target=_blank>http://www.gromacs.org/mailing_lists/users.php</A><BR>&gt; &gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; gmx-users mailing list<BR>&gt; &gt; gmx-users@gromacs.org<BR>&gt; &gt; <A href="http://www.gromacs.org/mailman/listinfo/gmx-users" target=_blank>http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt; MvG Maarten<BR>&gt;<BR>&gt; ******************************************************<BR>&gt; **&nbsp;&nbsp;Work Adress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Julianalaan 136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **<BR>&gt; **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2628 BL Delft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **<BR>&gt;
 **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Netherlands&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **<BR>&gt; **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+31(0)15-2789382&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**<BR>&gt; ******************************************************<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ___________________________________________________________<BR>&gt; Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. <A href="http://uk.mail.yahoo.com/" target=_blank>http://uk.mail.yahoo.com</A><BR>&gt; _______________________________________________<BR>&gt; gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;gmx-users@gromacs.org<BR>&gt; <A
 href="http://www.gromacs.org/mailman/listinfo/gmx-users" target=_blank>http://www.gromacs.org/mailman/listinfo/gmx-users</A><BR>&gt; Please don't post (un)subscribe requests to the list. Use the<BR>&gt; www interface or send it to gmx-users-request@gromacs.org.<BR>&gt; Can't post? Read <A href="http://www.gromacs.org/mailing_lists/users.php" target=_blank>http://www.gromacs.org/mailing_lists/users.php</A><BR>&gt;</DIV></DIV></DIV></div></body></html>