<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Re[2]: [gmx-users] clustering dynamical structures</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-weight: bold;
 color: #800000;
}
span.rvts7
{
 font-weight: bold;
 color: #800080;
}
a.rvts8, span.rvts8
{
 color: #0000ff;
 text-decoration: underline;
}
span.rvts9
{
 font-weight: bold;
 color: #800000;
}
span.rvts10
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts11, span.rvts11
{
 font-size: 8pt;
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Mark wrote:</p>
<p><br></p>
<p><span class=rvts6>&gt; Dmitri Dubov wrote:</span></p>
<p><span class=rvts7>&gt;&gt; Dear GMX'ers,</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; Many gmx tools (g_rms, g_rmsdist, g_cluster etc.) calculate RMSD of distances. Take some molecule having two docking sites (A and B) and hydrated with two water molecules (C and D). Let's inspect two structures realized. The first structure is with C docking to A and D to B, and the 2nd one has C docking to B and D to A. These structures have large RMSD of distances between FIXED PAIRS OF &nbsp;THEIR ATOMS, and to my knowledge g_cluster will differ them. How can I cluster these structures?</span></p>
<p><br></p>
<p><span class=rvts6>&gt; You should test your hypothesis with g_cluster by converting two such&nbsp;</span></p>
<p><span class=rvts6>&gt; frames to a .pdb "trajectory" with trjconv, and then editing by hand to</span></p>
<p><span class=rvts6>&gt; permute such a pair, and comparing the results before and after permutation.</span></p>
<p><br></p>
<p>- Yes, I sure have done it: g_rms calculates nonzero RMSD of distances between initial and permuted structure.</p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; (Actually it is a very simplified example of my problem. My need is in clustering structures for system with many permutations.)</span></p>
<p><br></p>
<p><span class=rvts6>&gt; It's hard to advise when we don't know your real objective. Do you want</span></p>
<p><span class=rvts6>&gt; to cluster over fully solvated structures, but losing fixed-pair mapping</span></p>
<p><span class=rvts6>&gt; of waters? If so, then that's going to require quite expensive&nbsp;</span></p>
<p><span class=rvts6>&gt; permutation over all possible orders of waters to find the global&nbsp;</span></p>
<p><span class=rvts6>&gt; minimum RMSD. Heuristics exist to find a close-to-minimum permutation,</span></p>
<p><span class=rvts6>&gt; but guaranteeing global minima is hard.</span></p>
<p><br></p>
<p><span class=rvts6>&gt; On the other hand, if you merely want to cluster with any waters in the</span></p>
<p><span class=rvts6>&gt; docking sites permuted, and ignore the rest, then you may need to script</span></p>
<p><span class=rvts6>&gt; g_dist using each water molecule as a group and a key atom in a docking</span></p>
<p><span class=rvts6>&gt; site as a group in order to identify the water molecule(s) in the site.</span></p>
<p><span class=rvts6>&gt; Then trjconv with the same index file and that info can write a&nbsp;</span></p>
<p><span class=rvts6>&gt; trajectory with just the selected waters. Now you may merely need to&nbsp;</span></p>
<p><span class=rvts6>&gt; permute over a handful of possibilities with g_rms, before finally&nbsp;</span></p>
<p><span class=rvts6>&gt; writing the permuted selected waters + solute to a trajectory (with&nbsp;</span></p>
<p><span class=rvts6>&gt; trjconv). This is now prepared for clustering with g_cluster - the&nbsp;</span></p>
<p><span class=rvts6>&gt; waters are ordered such that fixed-pair mapping makes sense.</span></p>
<p><br></p>
<p>Thanks for your advice! g_dist + trjconv may be helpful...</p>
<p><br></p>
<p><span class=rvts6>&gt; Mark</span></p>
<p><span class=rvts6>&gt; _______________________________________________</span></p>
<p><span class=rvts6>&gt; gmx-users mailing list &nbsp; &nbsp;</span><a class=rvts8 href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a></p>
<p><a class=rvts8 href="http://lists.gromacs.org/mailman/listinfo/gmx-users">&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users</a></p>
<p><span class=rvts6>&gt; Please search the archive at&nbsp;</span><a class=rvts8 href="http://www.gromacs.org/search">http://www.gromacs.org/search</a><span class=rvts9>&nbsp;before posting!</span></p>
<p><span class=rvts6>&gt; Please don't post (un)subscribe requests to the list. Use the&nbsp;</span></p>
<p><span class=rvts6>&gt; www interface or send it to&nbsp;</span><a class=rvts8 href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a><span class=rvts9>.</span></p>
<p><span class=rvts6>&gt; Can't post? Read&nbsp;</span><a class=rvts8 href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a></p>
<p><br></p>
<p>Dmitri</p>
<p><a class=rvts11 href="mailto:ddubov@ngs.ru"><br></a></p>

</body></html>