<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 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">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]!="") { 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]=="") { grid[i,j]=mm+0.01 }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print x_min+(i+0.5)*grid_x_size " " y_min+(j+0.5)*grid_y_size " " grid[i,j]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; }<br>}<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Russell Green &lt;russellwgreen@gmail.com&gt;<br>To: Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt;<br>Sent: Tuesday, June 12, 2007 2:17:45 AM<br>Subject: [gmx-users] dPCA "atoms"<br><br><div>Dear Gromacs community,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; I'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 "atoms" but the analysis was done for about 536 residues so that'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'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>
<div>_______________________________________________<br>gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;gmx-users@gromacs.org<br><a target="_blank" href="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at <a target="_blank" href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!<br>Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to gmx-users-request@gromacs.org.<br>Can't post? Read <a target="_blank" href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a></div></div><br></div></div></body></html>