Thank you sooo much Tsjerk,<br>I&#39;ve been struggling for 3 days to understand how g_rmsf works.<br>Thank you, your explanation is very clear.<br><br>Cheers,<br>Carla<br><br><div class="gmail_quote">On Wed, Feb 17, 2010 at 3:18 PM, Tsjerk Wassenaar <span dir="ltr">&lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Carla,<br>
<br>
What g_rmsf does is calculate the first (average) and second<br>
(fluctuation) central moments. For that, it is required that the<br>
conformational space is defined, which is done by fitting each frame<br>
to the reference structure. The reference is only used for that. The<br>
fluctuation is calculated about the mean position. It doesn&#39;t make<br>
sense to most people to calculate a non-central second moment, so be<br>
assured that that&#39;s not what g_rmsf does (for the few people<br>
interested, it can be  done with g_covar :p).<br>
<br>
g_rmsf does what you want.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Tsjerk<br>
</font><div><div></div><div class="h5"><br>
On Wed, Feb 17, 2010 at 3:06 PM, Carla Jamous &lt;<a href="mailto:carlajamous@gmail.com">carlajamous@gmail.com</a>&gt; wrote:<br>
&gt; Thank you Tsjerk,<br>
&gt; but one more question:<br>
&gt; if I do the following: g_rmsf -f a.xtc -s b.tpr -o rmsf.xvg -ox average.pdb<br>
&gt; -n c.ndx<br>
&gt;<br>
&gt; does gromacs claculate the rmsf after fitting to b.tpr or to average.pdb?<br>
&gt; &amp; if I want it to calculatefluctuations between the position of<br>
&gt; particle i and the time-averaged position of the same particle i, do I have<br>
&gt; to do:<br>
&gt;<br>
&gt; g_rmsf -f a.xtc -s average.pdb -o rmsf.xvg?????<br>
&gt;<br>
&gt; Thank you &amp; sorry to bother. I&#39;m just trying to understand what g_rmsf<br>
&gt; really does, to help me analyze my results.<br>
&gt;<br>
&gt; Carla<br>
&gt;<br>
&gt; On Wed, Feb 17, 2010 at 10:25 AM, Tsjerk Wassenaar &lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Carla,<br>
&gt;&gt;<br>
&gt;&gt; Justin&#39;s recipe should&#39;ve worked. As he suggested, maybe the ligand is<br>
&gt;&gt; not with the protein. You can check by multiplying your system with<br>
&gt;&gt; genconf:<br>
&gt;&gt;<br>
&gt;&gt; genconf -f in.pdb -o out.pdb -nbox 2 2 2<br>
&gt;&gt;<br>
&gt;&gt; If the ligand is with the protein, one copy will be located in one of<br>
&gt;&gt; the copies of the protein.<br>
&gt;&gt;<br>
&gt;&gt; g_rmsf does write the average structure, if requested. Use the option -ox<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; Tsjerk<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Feb 17, 2010 at 10:08 AM, Carla Jamous &lt;<a href="mailto:carlajamous@gmail.com">carlajamous@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi Justin,<br>
&gt;&gt; &gt; I&#39;m still trying to figure out what happened with my ligand.<br>
&gt;&gt; &gt; Meanwhile, I have another question: I can&#39;t figure out how to calculate<br>
&gt;&gt; &gt; an<br>
&gt;&gt; &gt; average structure in gromacs.<br>
&gt;&gt; &gt; And does g_rmsf calculate the average structure automatically?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks again<br>
&gt;&gt; &gt; Carla<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Feb 16, 2010 at 5:44 PM, Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Carla Jamous wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hi Justin,<br>
&gt;&gt; &gt;&gt;&gt; Thank you for your answer but I&#39;m still not getting my ligand to stay<br>
&gt;&gt; &gt;&gt;&gt; in<br>
&gt;&gt; &gt;&gt;&gt; the box.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; I tried the following(after taking a look at the mailing list<br>
&gt;&gt; &gt;&gt;&gt; archive):<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; trjconv -s a.tpr -f b.xtc -o c.xtc -center -ur compact -pbc mol<br>
&gt;&gt; &gt;&gt;&gt; (centering on &quot;Protein&quot;)<br>
&gt;&gt; &gt;&gt;&gt; trjconv -s d.tpr -f c.xtc -o f.xtc -fit rot+trans<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; So please do you have another advise to give me?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If that&#39;s not working, then I wonder if your ligand is still actually<br>
&gt;&gt; &gt;&gt; bound to your protein :)  The above sequence always works for me, as<br>
&gt;&gt; &gt;&gt; long as<br>
&gt;&gt; &gt;&gt; there actually is a complex.  You can also try -pbc cluster, but I know<br>
&gt;&gt; &gt;&gt; that<br>
&gt;&gt; &gt;&gt; algorithm can hang.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -Justin<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Thanks<br>
&gt;&gt; &gt;&gt;&gt; Carla<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Mon, Feb 15, 2010 at 4:32 PM, Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a><br>
&gt;&gt; &gt;&gt;&gt; &lt;mailto:<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    Carla Jamous wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;        Hi everyone,<br>
&gt;&gt; &gt;&gt;&gt;        I&#39;m using this command to extract my protein and my ligand from<br>
&gt;&gt; &gt;&gt;&gt;        the trajectory.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;        trjconv -f prot_md60ns.xtc -s prot_md50.tpr -fit rot+trans -pbc<br>
&gt;&gt; &gt;&gt;&gt;        whole -n prot_wat.ndx -o prot_ligand_60ns.xtc &lt; grps &gt;&amp; outtrj<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;        Before, I had a problem with residues of my protein showing at<br>
&gt;&gt; &gt;&gt;&gt;        the other end of the box, when I display my .xtc with VMD.<br>
&gt;&gt; &gt;&gt;&gt;        the &quot;-pbc whole&quot; fixed it.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;        However, now I have another issue: my ligand is at the other<br>
&gt;&gt; &gt;&gt;&gt; end<br>
&gt;&gt; &gt;&gt;&gt;        of the box. So please can anyone tell me what can I do to fix<br>
&gt;&gt; &gt;&gt;&gt;        that and get a reasonable RMSD value?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    You may need several more iterations of trjconv (one rarely does<br>
&gt;&gt; &gt;&gt;&gt; the<br>
&gt;&gt; &gt;&gt;&gt;    trick), employing -pbc nojump, -pbc cluster, and/or -center.  For<br>
&gt;&gt; &gt;&gt;&gt;    protein-ligand complexes, I have often found that the combination<br>
&gt;&gt; &gt;&gt;&gt; of:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    trjconv -pbc mol -ur compact -center<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    (centering on &quot;Protein&quot;)<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    does the trick.  And it makes molecules whole, as well :)  I think<br>
&gt;&gt; &gt;&gt;&gt;    there are also some breakdowns (documented somewhere in the list<br>
&gt;&gt; &gt;&gt;&gt;    archive) when applying -fit and -pbc in the same step.  I believe<br>
&gt;&gt; &gt;&gt;&gt; it<br>
&gt;&gt; &gt;&gt;&gt;    is recommended to fix PBC first, then applying any sort of fitting<br>
&gt;&gt; &gt;&gt;&gt;    in a separate, subsequent step.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    -Justin<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;        Thank you<br>
&gt;&gt; &gt;&gt;&gt;        Carla<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    --    ========================================<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    Justin A. Lemkul<br>
&gt;&gt; &gt;&gt;&gt;    Ph.D. Candidate<br>
&gt;&gt; &gt;&gt;&gt;    ICTAS Doctoral Scholar<br>
&gt;&gt; &gt;&gt;&gt;    MILES-IGERT Trainee<br>
&gt;&gt; &gt;&gt;&gt;    Department of Biochemistry<br>
&gt;&gt; &gt;&gt;&gt;    Virginia Tech<br>
&gt;&gt; &gt;&gt;&gt;    Blacksburg, VA<br>
&gt;&gt; &gt;&gt;&gt;    jalemkul[at]<a href="http://vt.edu" target="_blank">vt.edu</a> &lt;<a href="http://vt.edu" target="_blank">http://vt.edu</a>&gt; | (540) 231-9080<br>
&gt;&gt; &gt;&gt;&gt;    <a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;    ========================================<br>
&gt;&gt; &gt;&gt;&gt;    --    gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt; &gt;&gt;&gt;    &lt;mailto:<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt;    <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt; &gt;&gt;&gt;    Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before<br>
&gt;&gt; &gt;&gt;&gt;    posting!<br>
&gt;&gt; &gt;&gt;&gt;    Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
&gt;&gt; &gt;&gt;&gt;    interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a><br>
&gt;&gt; &gt;&gt;&gt;    &lt;mailto:<a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>&gt;.<br>
&gt;&gt; &gt;&gt;&gt;    Can&#39;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;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; ========================================<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Justin A. Lemkul<br>
&gt;&gt; &gt;&gt; Ph.D. Candidate<br>
&gt;&gt; &gt;&gt; ICTAS Doctoral Scholar<br>
&gt;&gt; &gt;&gt; MILES-IGERT Trainee<br>
&gt;&gt; &gt;&gt; Department of Biochemistry<br>
&gt;&gt; &gt;&gt; Virginia Tech<br>
&gt;&gt; &gt;&gt; Blacksburg, VA<br>
&gt;&gt; &gt;&gt; jalemkul[at]<a href="http://vt.edu" target="_blank">vt.edu</a> | (540) 231-9080<br>
&gt;&gt; &gt;&gt; <a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ========================================<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt; &gt;&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before<br>
&gt;&gt; &gt;&gt; posting!<br>
&gt;&gt; &gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
&gt;&gt; &gt;&gt; interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt;&gt; &gt;&gt; Can&#39;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; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt; &gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt; &gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before<br>
&gt;&gt; &gt; posting!<br>
&gt;&gt; &gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt;&gt; &gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt;&gt; &gt; Can&#39;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;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Tsjerk A. Wassenaar, Ph.D.<br>
&gt;&gt;<br>
&gt;&gt; Computational Chemist<br>
&gt;&gt; Medicinal Chemist<br>
&gt;&gt; Neuropharmacologist<br>
&gt;&gt; --<br>
&gt;&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt;&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
&gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt;&gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt;&gt; Can&#39;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;<br>
&gt;<br>
&gt; --<br>
&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt; Can&#39;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;<br>
<br>
<br>
<br>
--<br>
Tsjerk A. Wassenaar, Ph.D.<br>
<br>
Computational Chemist<br>
Medicinal Chemist<br>
Neuropharmacologist<br>
--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;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>
</div></div></blockquote></div><br>