Hello,<br>I have some doubts regarding the output file correl.dat as it contains 3 columns, but I am not able to get what are<br>these column contains,I mean how to change it to the format in which I can directly plot the data to get DCCM map...<br>
For e.g in this form<br>Res1  Res2  Correlation coefficient<br>x         y        z<br><div class="gmail_quote">On Sun, Jun 19, 2011 at 16:16, 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Of course you did... Though mind the brackets :)<br>
<div class="im"><br>
C_ij = &lt;x_i * x_j&gt; / sqrt ( &lt;x_i ^2&gt; * &lt;x_j^2&gt; )<br>
<br>
</div>The point I want to make is that you can easily take the output from<br>
g_covar -ascii and turn it into a correlation matrix. In R<br>
(<a href="http://r-project.org" target="_blank">r-project.org</a>) there is even a dedicated function for it:<br>
<br>
x &lt;- scan(&quot;covar.dat&quot;)<br>
x &lt;- matrix(x,sqrt(length(x)))<br>
y &lt;- cov2cor(x)<br>
write(y,&quot;correl.dat&quot;,ncolumns=3)<br>
<br>
Cheers,<br>
<br>
Tsjerk<br>
<br>
On Sun, Jun 19, 2011 at 12:37 PM, Alexey Shvetsov<br>
<div><div></div><div class="h5">&lt;<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Thats actualy that i did here [1]. Extracting coordinate for every atom in<br>
&gt; interesting two group and computing<br>
&gt;<br>
&gt; C_ij = &lt;x_i * x_j&gt; / sqrt ( x_i ^2 * x_j^2 ) assuming that x_i and x_j is<br>
&gt; vectors<br>
&gt;<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://omrb.pnpi.spb.ru/gitweb/?p=gromacs/gromacs.git;a=shortlog;h=refs/heads/alexxy/g_correl" target="_blank">http://omrb.pnpi.spb.ru/gitweb/?p=gromacs/gromacs.git;a=shortlog;h=refs/heads/alexxy/g_correl</a><br>

&gt; On Sun, 19 Jun 2011 12:27:53 +0200, Tsjerk Wassenaar wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hey,<br>
&gt;&gt;<br>
&gt;&gt; The method from Lange is quite a different thing. It includes<br>
&gt;&gt; non-linear correlations, which is interesting to look at for overall<br>
&gt;&gt; correlation between atoms. If the ultimate goal is to do PCA on it,<br>
&gt;&gt; then it will give you awkward components that will give you a hard<br>
&gt;&gt; time trying to interpret.<br>
&gt;&gt;<br>
&gt;&gt; There is another way, besides using an external tool. Extract the<br>
&gt;&gt; diagonal elements and take the square root of each. Then for each<br>
&gt;&gt; element [i,j] in the matrix, divide by the elements i and j of these<br>
&gt;&gt; square roots, and you&#39;ll have yourself a correlation matrix.<br>
&gt;&gt;<br>
&gt;&gt; Hope it helps,<br>
&gt;&gt;<br>
&gt;&gt; Tsjerk<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Jun 19, 2011 at 11:55 AM, Alexey Shvetsov<br>
&gt;&gt; &lt;<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There is two possibilitys<br>
&gt;&gt;&gt; 1. utility written by   Oliver F. Lange and Helmut Grubmüller [1] that<br>
&gt;&gt;&gt; compites<br>
&gt;&gt;&gt; general corelation coefficients<br>
&gt;&gt;&gt; 2. My utility that computes pearson correlation coefficients [2]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [1]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://www.mpibpc.mpg.de/home/grubmueller/downloads/GeneralizedCorrelations/index.html" target="_blank">http://www.mpibpc.mpg.de/home/grubmueller/downloads/GeneralizedCorrelations/index.html</a><br>

&gt;&gt;&gt; [2]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://omrb.pnpi.spb.ru/gitweb/?p=gromacs/gromacs.git;a=shortlog;h=refs/heads/alexxy/g_correl" target="_blank">http://omrb.pnpi.spb.ru/gitweb/?p=gromacs/gromacs.git;a=shortlog;h=refs/heads/alexxy/g_correl</a><br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, 17 Jun 2011 00:48:01 -0500, E. Nihal Korkmaz wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Dear all,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is there any built in function that gives me the pairwise correlation<br>
&gt;&gt;&gt;&gt; of the fluctuation (unit vector between two coordinates of a residue)<br>
&gt;&gt;&gt;&gt; of residues (averaged over the input trajectory). I tried g_covar but<br>
&gt;&gt;&gt;&gt; thats not what im looking for. The result I want should be an NxN<br>
&gt;&gt;&gt;&gt; matrix with values ranging from -1 to 1.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks in advance,<br>
&gt;&gt;&gt;&gt; Nihal<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Elif Nihal Korkmaz<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Research Assistant<br>
&gt;&gt;&gt;&gt; University of Wisconsin - Biophysics<br>
&gt;&gt;&gt;&gt; Member of Qiang Cui &amp; Thomas Record Labs<br>
&gt;&gt;&gt;&gt; 1101 University Ave, Rm. 8359<br>
&gt;&gt;&gt;&gt;  Madison, WI 53706<br>
&gt;&gt;&gt;&gt;  Phone:  608-265-3644<br>
&gt;&gt;&gt;&gt;  Email:   <a href="mailto:korkmaz@wisc.edu">korkmaz@wisc.edu</a> [1]<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Links:<br>
&gt;&gt;&gt;&gt; ------<br>
&gt;&gt;&gt;&gt; [1] mailto:<a href="mailto:korkmaz@wisc.edu">korkmaz@wisc.edu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Best Regards,<br>
&gt;&gt;&gt; Alexey &#39;Alexxy&#39; Shvetsov<br>
&gt;&gt;&gt; Petersburg Nuclear Physics Institute, Russia<br>
&gt;&gt;&gt; Department of Molecular and Radiation Biophysics<br>
&gt;&gt;&gt; Gentoo Team Ru<br>
&gt;&gt;&gt; Gentoo Linux Dev<br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxyum@gmail.com">alexxyum@gmail.com</a><br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxy@gentoo.org">alexxy@gentoo.org</a><br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a><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<br>
&gt;&gt;&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>
&gt;&gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
&gt;&gt;&gt; interface<br>
&gt;&gt;&gt; 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/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</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; post-doctoral researcher<br>
&gt;&gt; Molecular Dynamics Group<br>
&gt;&gt; * Groningen Institute for Biomolecular Research and Biotechnology<br>
&gt;&gt; * Zernike Institute for Advanced Materials<br>
&gt;&gt; University of Groningen<br>
&gt;&gt; The Netherlands<br>
&gt;<br>
&gt; --<br>
&gt; Best Regards,<br>
&gt; Alexey &#39;Alexxy&#39; Shvetsov<br>
&gt; Petersburg Nuclear Physics Institute, Russia<br>
&gt; Department of Molecular and Radiation Biophysics<br>
&gt; Gentoo Team Ru<br>
&gt; Gentoo Linux Dev<br>
&gt; mailto:<a href="mailto:alexxyum@gmail.com">alexxyum@gmail.com</a><br>
&gt; mailto:<a href="mailto:alexxy@gentoo.org">alexxy@gentoo.org</a><br>
&gt; mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a><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<br>
&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt; 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/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div class="im">Tsjerk A. Wassenaar, Ph.D.<br>
<br>
post-doctoral researcher<br>
Molecular Dynamics Group<br>
* Groningen Institute for Biomolecular Research and Biotechnology<br>
* Zernike Institute for Advanced Materials<br>
University of Groningen<br>
The Netherlands<br>
--<br>
</div><div><div></div><div class="h5">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/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/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/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(51, 51, 255)">-----------------------</span><br style="color:rgb(51, 51, 255)"><i><span style="color:rgb(51, 51, 255)">Regards,</span></i><br style="color:rgb(51, 51, 255)">
<span style="color:rgb(51, 51, 255);font-family:garamond,serif">Bipin Singh</span><br><br>