<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>Re: [gmx-users] Measuring Atom Distances</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi all<BR>
let's say that I have two subset of atoms, let's call them i, j, k (first group A) and l, m, n (second group B).<BR>
Is there any elegant way (rather than iterating g_dist) of having the average over the trajectory and over ALL the possible permutation over the two subset A and B.<BR>
Thanx<BR>
Regards<BR>
<BR>
Alessandro Mattozzi<BR>
M.Phil., Ph.D. student<BR>
Dept. of Fibre and Polymer Technology<BR>
Royal Institute of Technology<BR>
Stockholm, Sweden<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: gmx-users-bounces@gromacs.org on behalf of Tsjerk Wassenaar<BR>
Sent: Tue 7/4/2006 9:40 AM<BR>
To: Discussion list for GROMACS users<BR>
Subject: Re: [gmx-users] Measuring Atom Distances<BR>
<BR>
Hi Javad,<BR>
<BR>
You don't need to bother using make_ndx, just create a file atoms.ndx<BR>
which reads like this:<BR>
<BR>
[ atom1 ]<BR>
number_of _first_atom<BR>
[ atom2 ]<BR>
number_of_second_atom<BR>
<BR>
Cheers,<BR>
<BR>
Tsjerk<BR>
<BR>
On 7/4/06, Javad Azadi &lt;jazadi@chemistry.ohio-state.edu&gt; wrote:<BR>
&gt; Is it just a matter of using make_ndx -f traj.gro<BR>
&gt;<BR>
&gt; &gt;a (atom1 number from .gro) (atom2 number from .gro)<BR>
&gt;<BR>
&gt; then selecting keep # where # is the index just created?<BR>
&gt;<BR>
&gt; Javad<BR>
&gt;<BR>
&gt; &quot;Dallas B. Warren&quot; &lt;Dallas.Warren@vcp.monash.edu.au&gt; said:<BR>
&gt;<BR>
&gt; &gt; &gt; I tried g_dist, and the out put is nothing but zeros.&nbsp; I only<BR>
&gt; &gt; &gt; have the two unconnected atoms indexed that I want to<BR>
&gt; &gt; &gt; measure, could that be the problem?<BR>
&gt; &gt;<BR>
&gt; &gt; I would check what you are doing.&nbsp; It shouldn't matter whether the atoms<BR>
&gt; &gt; are connected or not, g_dist will measure the distance between them.<BR>
&gt; &gt; Are you sure you have set up the index groups correctly?<BR>
&gt; &gt;<BR>
&gt; &gt; Catch ya,<BR>
&gt; &gt;<BR>
&gt; &gt; Dr. Dallas Warren<BR>
&gt; &gt; Lecturer<BR>
&gt; &gt; Department of Pharmaceutical Biology and Pharmacology<BR>
&gt; &gt; Victorian College of Pharmacy, Monash University<BR>
&gt; &gt; 381 Royal Parade, Parkville VIC 3010<BR>
&gt; &gt; dallas.warren@vcp.monash.edu.au<BR>
&gt; &gt; +61 3 9903 9524<BR>
&gt; &gt; ---------------------------------<BR>
&gt; &gt; When the only tool you own is a hammer, every problem begins to resemble<BR>
&gt; &gt; a nail.<BR>
&gt; &gt; _______________________________________________<BR>
&gt; &gt; gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<BR>
&gt; &gt; <A HREF="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><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 <A HREF="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR>
&gt; &gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<BR>
&gt; <A HREF="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><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 <A HREF="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR>
&gt;<BR>
<BR>
<BR>
--<BR>
<BR>
Tsjerk A. Wassenaar, M.Sc.<BR>
Groningen Biomolecular Sciences and Biotechnology Institute (GBB)<BR>
Dept. of Biophysical Chemistry<BR>
University of Groningen<BR>
Nijenborgh 4<BR>
9747AG Groningen, The Netherlands<BR>
+31 50 363 4336<BR>
_______________________________________________<BR>
gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<BR>
<A HREF="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</A><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 HREF="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>