<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi<br>Thanks for your input, what are the few specific cases where <br>a reference structure might be used?<br>Vijaya<br><br>&gt; Date: Thu, 18 Mar 2010 20:42:36 +0100<br>&gt; Subject: Re: [gmx-users] g_covar -ref<br>&gt; From: tsjerkw@gmail.com<br>&gt; To: gmx-users@gromacs.org<br>&gt; <br>&gt; Hi Vijaya,<br>&gt; <br>&gt; &gt; Your answer truly eludes me, unless -ref is an useless option.<br>&gt; <br>&gt; Well, that's pretty close to the conclusion. The use is limited to a<br>&gt; few very specific cases and it might be better to hide the option from<br>&gt; the view of casual users.<br>&gt; <br>&gt; But apparently you didn't catch the why yet. If you imagine a pendulum<br>&gt; going back and forth, the principal components will be commonly<br>&gt; determined by taking the deviations from the mean position. Then you<br>&gt; get two components, one for the direction of the motion and one for<br>&gt; the deflection from linearity, right? But now, you calculate  the<br>&gt; deviations not with respect to the average position, but you take the<br>&gt; deviations with respect to a position that is away from the mean, say<br>&gt; halfway to the left. Now you can follow the same procedure,<br>&gt; calculating a matrix of cross products for these deviations, and<br>&gt; diagonalizing it. But what do these results then mean? This is a neat<br>&gt; example to run with pen and paper... You should even be able to solve<br>&gt; it analytically :)<br>&gt; <br>&gt; Have fun,<br>&gt; <br>&gt; Tsjerk<br>&gt; <br>&gt; <br>&gt; &gt; In any case it isn't particularly important.<br>&gt; &gt; Vijaya<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Thu, 18 Mar 2010 19:37:40 +0100<br>&gt; &gt;&gt; Subject: Re: [gmx-users] g_covar -ref<br>&gt; &gt;&gt; From: tsjerkw@gmail.com<br>&gt; &gt;&gt; To: gmx-users@gromacs.org<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hi Vijaya,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I'm sorry if I didn't quite get that first sentence of yours. Did you<br>&gt; &gt;&gt; meant to start it with "I thought that ..."? Or were you trying to<br>&gt; &gt;&gt; explain me something you thought I missed?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; PCA stands for 'principal component analysis', not 'covariance<br>&gt; &gt;&gt; analysis'. For instance, PCA can be applied to correlations, and then<br>&gt; &gt;&gt; is 'correlation analysis'. SVD is a particular flavour of PCA and here<br>&gt; &gt;&gt; yields the same results as traditional PCA because the covariance<br>&gt; &gt;&gt; matrix is symmetric, but otherwise they're not strictly the same. That<br>&gt; &gt;&gt; is to say, the SVD is obtained by extracting the eigenvectors from the<br>&gt; &gt;&gt; matrices transpose(S) x S and S x transpose(S). Which are quite<br>&gt; &gt;&gt; obviously identical if S is a symmetric matrix.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; By the way, was your question regarding the -ref option answered, or<br>&gt; &gt;&gt; did the answer elude you? If the latter is the case, maybe if now you<br>&gt; &gt;&gt; feel sufficiently confident that I know a bit about PCA, you can go<br>&gt; &gt;&gt; through the answer again.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Cheers,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Tsjerk<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Thu, Mar 18, 2010 at 7:01 PM, vijaya subramanian<br>&gt; &gt;&gt; &lt;vijaya65@hotmail.com&gt; wrote:<br>&gt; &gt;&gt; &gt; PCA refers to covariance analysis (though SVD gives the same results).<br>&gt; &gt;&gt; &gt; Principal components are obtained by projecting the trajectory onto<br>&gt; &gt;&gt; &gt; &nbsp;the eigenvectors of the covariance matrix.<br>&gt; &gt;&gt; &gt; I just wanted to know why the option -ref was offered and if it had any<br>&gt; &gt;&gt; &gt; significance.<br>&gt; &gt;&gt; &gt; Thanks<br>&gt; &gt;&gt; &gt; Vijaya<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;&gt; Date: Thu, 18 Mar 2010 17:51:04 +0100<br>&gt; &gt;&gt; &gt;&gt; Subject: Re: [gmx-users] g_covar -ref<br>&gt; &gt;&gt; &gt;&gt; From: tsjerkw@gmail.com<br>&gt; &gt;&gt; &gt;&gt; To: gmx-users@gromacs.org<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; Hi Vijaya,<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; Well, to start with that will be something as calculating the<br>&gt; &gt;&gt; &gt;&gt; 'fluctuation' as sum((xi-ri)^2)/N, with xi and ri denoting the ith<br>&gt; &gt;&gt; &gt;&gt; atom of the conformation x and the reference structure r and the sum<br>&gt; &gt;&gt; &gt;&gt; is over time/observations. In the case of no variation in xi, the<br>&gt; &gt;&gt; &gt;&gt; value you get will still be finite, in stead of zero, as would<br>&gt; &gt;&gt; &gt;&gt; probably be most meaningful.<br>&gt; &gt;&gt; &gt;&gt; Now for the covariances, there's a bit more to it. The covariance is<br>&gt; &gt;&gt; &gt;&gt; the product moment of the deviations: sum((xi-ri)(xj-rj))/N. When<br>&gt; &gt;&gt; &gt;&gt; there is no correlation, the deviations about the mean are random and<br>&gt; &gt;&gt; &gt;&gt; average out to zero. But with the deviations against a reference, that<br>&gt; &gt;&gt; &gt;&gt; is not the case. So the results should be regarded meaningless, unless<br>&gt; &gt;&gt; &gt;&gt; you have a good reason for doing so, and come with a solid<br>&gt; &gt;&gt; &gt;&gt; justification. Okay, there may be a purpose, but I'll leave that to<br>&gt; &gt;&gt; &gt;&gt; your imagination :)<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; Hope it helps,<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; Tsjerk<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; On Thu, Mar 18, 2010 at 5:33 PM, vijaya subramanian<br>&gt; &gt;&gt; &gt;&gt; &lt;vijaya65@hotmail.com&gt; wrote:<br>&gt; &gt;&gt; &gt;&gt; &gt; Hi<br>&gt; &gt;&gt; &gt;&gt; &gt; Has anyone studied the effect of using different reference<br>&gt; &gt;&gt; &gt;&gt; &gt; structures,<br>&gt; &gt;&gt; &gt;&gt; &gt; not the average structure, when carrying out PCA.&nbsp; Does it make sense<br>&gt; &gt;&gt; &gt;&gt; &gt; to<br>&gt; &gt;&gt; &gt;&gt; &gt; use<br>&gt; &gt;&gt; &gt;&gt; &gt; a structure besides the average to calculate the covariance matrix?<br>&gt; &gt;&gt; &gt;&gt; &gt; Thanks<br>&gt; &gt;&gt; &gt;&gt; &gt; Vijaya<br>&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;&gt; &gt; ________________________________<br>&gt; &gt;&gt; &gt;&gt; &gt; Hotmail: Trusted email with powerful SPAM protection. Sign up now.<br>&gt; &gt;&gt; &gt;&gt; &gt; --<br>&gt; &gt;&gt; &gt;&gt; &gt; gmx-users mailing list &nbsp; &nbsp;gmx-users@gromacs.org<br>&gt; &gt;&gt; &gt;&gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; &gt;&gt; &gt; Please search the archive at http://www.gromacs.org/search before<br>&gt; &gt;&gt; &gt;&gt; &gt; posting!<br>&gt; &gt;&gt; &gt;&gt; &gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; &gt;&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; &gt;&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &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; --<br>&gt; &gt;&gt; &gt;&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; post-doctoral researcher<br>&gt; &gt;&gt; &gt;&gt; Molecular Dynamics Group<br>&gt; &gt;&gt; &gt;&gt; Groningen Institute for Biomolecular Research and Biotechnology<br>&gt; &gt;&gt; &gt;&gt; University of Groningen<br>&gt; &gt;&gt; &gt;&gt; The Netherlands<br>&gt; &gt;&gt; &gt;&gt; --<br>&gt; &gt;&gt; &gt;&gt; gmx-users mailing list gmx-users@gromacs.org<br>&gt; &gt;&gt; &gt;&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before<br>&gt; &gt;&gt; &gt;&gt; posting!<br>&gt; &gt;&gt; &gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; &gt;&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; &gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; ________________________________<br>&gt; &gt;&gt; &gt; Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign<br>&gt; &gt;&gt; &gt; up<br>&gt; &gt;&gt; &gt; now.<br>&gt; &gt;&gt; &gt; --<br>&gt; &gt;&gt; &gt; gmx-users mailing list &nbsp; &nbsp;gmx-users@gromacs.org<br>&gt; &gt;&gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; &gt; Please search the archive at http://www.gromacs.org/search before<br>&gt; &gt;&gt; &gt; posting!<br>&gt; &gt;&gt; &gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; post-doctoral researcher<br>&gt; &gt;&gt; Molecular Dynamics Group<br>&gt; &gt;&gt; Groningen Institute for Biomolecular Research and Biotechnology<br>&gt; &gt;&gt; University of Groningen<br>&gt; &gt;&gt; The Netherlands<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; gmx-users mailing list gmx-users@gromacs.org<br>&gt; &gt;&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before posting!<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 http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Hotmail is redefining busy with tools for the New Busy. Get more from your<br>&gt; &gt; inbox. Sign up now.<br>&gt; &gt; --<br>&gt; &gt; gmx-users mailing list &nbsp; &nbsp;gmx-users@gromacs.org<br>&gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt; <br>&gt; post-doctoral researcher<br>&gt; Molecular Dynamics Group<br>&gt; Groningen Institute for Biomolecular Research and Biotechnology<br>&gt; University of Groningen<br>&gt; The Netherlands<br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<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 http://www.gromacs.org/mailing_lists/users.php<br>                                               <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/210850552/direct/01/' target='_new'>Sign up now.</a></body>
</html>