<div>Thanks Yang Ye! I will look into this further. Thanks for the program, I&#39;m sure that will save me much time.</div>
<div>&nbsp;</div>
<div>Russell Green<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/11/07, <b class="gmail_sendername">Yang Ye</b> &lt;<a href="mailto:leafyoung@yahoo.com">leafyoung@yahoo.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">As what we normally do with dPCA, after obtaining the 2D projection of first and second principle, we make it into a 3D plot of free energy surface. The awk program is provided below to do such conversion. On this surface, we can located regions with low free energy and this leads us to go back to 1D projection to locate which frames are inside the regions.&nbsp; Clustering or averaging may apply to all the frames found in one region. So, in the end, structure are found inside the trajectory for closer inspection.
<br><br>BEGIN {<br>&nbsp;&nbsp; i=0<br>&nbsp;&nbsp; grid_num=40.0<br><br>&nbsp;&nbsp; x_max=0.0<br>&nbsp;&nbsp; y_max=0.0<br>&nbsp;&nbsp; x_min=0.0<br>&nbsp;&nbsp; y_min=0.0<br><br>&nbsp;&nbsp; temp=300<br>&nbsp;&nbsp; dkt=8.31/1000.0*temp/4.182<br>}<br><br>{<br>&nbsp;&nbsp; x[i]=$1<br>&nbsp;&nbsp; y[i]=$2<br><br>&nbsp;&nbsp; if ($1&gt;x_max) x_max=$1
<br>&nbsp;&nbsp; if ($2&gt;y_max) y_max=$2<br>&nbsp;&nbsp; if ($1&lt;x_min) x_min=$1<br>&nbsp;&nbsp; if ($2&lt;y_min) y_min=$2<br>&nbsp;&nbsp; i++<br>}<br><br>END {<br>&nbsp;&nbsp; pt_num=i<br><br>&nbsp;&nbsp; grid_x_size=(x_max-x_min)/grid_num<br>&nbsp;&nbsp; grid_y_size=(y_max-y_min)/grid_num
<br><br>&nbsp;&nbsp; dm=0<br>&nbsp;&nbsp; for(i=0;i&lt;pt_num;i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grid[(int((x[i]-x_min)/grid_x_size)), (int((y[i]-y_min)/grid_y_size))]++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g=grid[(int((x[i]-x_min)/grid_x_size)), (int((y[i]-y_min)/grid_y_size))]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(dm&lt;g) { dm=g; }
<br>&nbsp;&nbsp; }<br><br>&nbsp;&nbsp; mm=0;<br>&nbsp;&nbsp; for(i=0;i&lt;grid_num;i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(j=0;j&lt;grid_num;j++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(grid[i,j]!=&quot;&quot;) { grid[i,j]=dkt*log(dm/grid[i,j]); if (grid[i,j]&gt;mm) {mm=grid[i,j];} }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<br>&nbsp;&nbsp; }<br><br>&nbsp;&nbsp; for(i=0;i&lt;grid_num;i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(j=0;j&lt;grid_num;j++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(grid[i,j]==&quot;&quot;) { grid[i,j]=mm+0.01 }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print x_min+(i+0.5)*grid_x_size &quot; &quot; y_min+(j+0.5)*grid_y_size &quot; &quot; grid[i,j]
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; }<br>}<br><br>
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<div><span class="e" id="q_1131c12dcf33a710_1">----- Original Message ----<br>From: Russell Green &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:russellwgreen@gmail.com" target="_blank">russellwgreen@gmail.com
</a>&gt;<br>To: Discussion list for GROMACS users &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a>&gt;<br>Sent: Tuesday, June 12, 2007 2:17:45 AM
<br>Subject: [gmx-users] dPCA &quot;atoms&quot;<br><br>
<div>Dear Gromacs community,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; I&#39;ve been using the PCA analysis in dihedral space for a chain of my protein of interest. I made a script to collect the atom quadruplets corresponding to the phi and psi angles and output them to an index file. I followed the steps in the paper manual and everything worked as it should; however, is there any way to relate the dihedral PCA information to each residue that contributed to the analysis? As it stands, my dummy reference file contains 715 &quot;atoms&quot; but the analysis was done for about 536 residues so that&#39;s 3 atoms&nbsp;per residue helping to define the dihedral angles. Could someone please provide some suggestions or 
<font style="BACKGROUND-COLOR: rgb(255,255,255)">more insight? I&#39;ve searched the net and the mailing list but have found no information regarding my question.</font></div>
<div>&nbsp;</div>
<div>Thanks in advance,</div>
<div>Russell Green</div>
<div>UAB Undergraduate Researcher</div></span></div>
<div>_______________________________________________<br>gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at <a onclick="return top.js.OpenExtLink(window,event,this)" 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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users-request@gromacs.org" target="_blank">
gmx-users-request@gromacs.org</a>.<br>Can&#39;t post? Read <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php
</a></div></div><br>&nbsp;</div></div></div><br>_______________________________________________<br>gmx-users mailing list &nbsp; &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at 
<a onclick="return top.js.OpenExtLink(window,event,this)" 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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>Can&#39;t post? Read <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">
http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br>