<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>If I understood well your question, you want to 
select atoms around a {x y z}.</FONT></DIV>
<DIV><FONT face=Arial size=2>Under VMD, play with the commands:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>within, same and exwithin.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>An example:&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>set number_frames [molinfo top get 
numframes]</FONT></DIV>
<DIV><FONT face=Arial size=2>set selection [atomselect top "exwithin&nbsp;3 of 
protein"]</FONT></DIV>
<DIV><FONT face=Arial size=2>for {set i 0} {$i &lt; $number_frames} {incr i} 
{</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; $selection frame i</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; $selection update</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;set frame_index($i)&nbsp;[$selection 
get index]</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This will give the index of the atoms around&nbsp;3 
angst. from protein, excluding protein atoms, for each frame in the loaded 
traj., and will save&nbsp;index values of those select atoms to&nbsp;the array 
frame_index().&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Though vmd-list is more suitable to answer this 
question, just to show you that vmd is really very flexible ;-)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>N.</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=vsrid001@odu.edu href="mailto:vsrid001@odu.edu">VISWANADHA 
  SRIDHARA</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=gmx-users@gromacs.org 
  href="mailto:gmx-users@gromacs.org">Discussion list for GROMACS users</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, July 02, 2005 1:29 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [gmx-users] Re: 
  make_ndx</DIV>
  <DIV><BR></DIV>
  <P>Hi Tsjerk,</P>
  <P>Thanks for the advice. Actually I knew how to do using VMD, but I need to 
  get the index file on a fly( say a trajectory), so its kind of difficult to 
  get index no.s out in a fly using VMD too. Anyways I will try to use Pymol 
  too.</P>
  <P>Thanks. <BR><BR><FONT style="FONT-SIZE: 9pt" size=2><B>"T.A.Wassenaar" 
  &lt;<A 
  href="mailto:T.A.Wassenaar@rug.nl">T.A.Wassenaar@rug.nl</A>&gt;</B></FONT><BR><FONT 
  style="FONT-SIZE: 9pt" size=2>Sent by: <A 
  href="mailto:gmx-users-bounces@gromacs.org">gmx-users-bounces@gromacs.org</A></FONT><BR><FONT 
  style="FONT-SIZE: 9pt" size=2>07/01/2005 09:29 PM ZE2Please respond 
  toDiscussion list for GROMACS users </FONT><BR><BR><FONT 
  style="FONT-SIZE: 9pt" size=2>To</FONT> &nbsp; <FONT style="FONT-SIZE: 9pt" 
  size=2>Discussion list for GROMACS users 
  &lt;gmx-users@gromacs.org&gt;</FONT><BR><FONT style="FONT-SIZE: 9pt" 
  size=2>cc</FONT> &nbsp; <BR><FONT style="FONT-SIZE: 9pt" size=2>bcc</FONT> 
  &nbsp; <BR><FONT style="FONT-SIZE: 9pt" size=2>Subject</FONT> &nbsp; <FONT 
  style="FONT-SIZE: 9pt" size=2>Re: [gmx-users] Re: 
  make_ndx</FONT><BR>&nbsp;<BR><BR></P>
  <P><FONT face=Monospace,Courier>Hi Sri,<BR></FONT><BR><FONT 
  face=Monospace,Courier>It is not possible to do this in gromacs. Pymol can 
  make<BR>such selections, but then you need a script to write an<BR>index file 
  from a Pymol selection. If you know a bit of<BR>python that shouldn't be too 
  hard.<BR></FONT><BR><FONT face=Monospace,Courier>Hope it 
  helps,<BR></FONT><BR><FONT face=Monospace,Courier>Tsjerk<BR></FONT><BR><FONT 
  face=Monospace,Courier>On Fri, 1 Jul 2005 09:33:36 -0400<BR>VISWANADHA 
  SRIDHARA &lt;vsrid001@odu.edu&gt; wrote:</FONT><BR><FONT 
  face=Monospace,Courier>&gt; Hi GMX users,<BR>&gt;<BR>&gt; I was wondering 
  whether there is any option in make_ndx<BR>&gt;to get the index of<BR>&gt; the 
  atoms(or molecules) as a function of the box<BR>&gt;vectors.<BR>&gt; In other 
  words, can I get the index of the molecules<BR>&gt;separately which 
  are<BR>&gt; 1nm spherical radius in a 3nm cube as an 
  example.(say<BR>&gt;cube's center is the<BR>&gt; sphere's center 
  too).<BR>&gt;<BR>&gt; Thanks in advance,<BR>&gt; Sri<BR>&gt;<BR>&gt; 
  _______________________________________________<BR>&gt; gmx-users mailing 
  list<BR>&gt; 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.<BR>&gt;Use the<BR>&gt; 
  www interface or send it 
  to<BR>&gt;gmx-users-request@gromacs.org.<BR></FONT><BR><FONT 
  face=Monospace,Courier>_______________________________________________<BR>gmx-users 
  mailing list<BR>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.</FONT></P>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>gmx-users mailing 
  list<BR>gmx-users@gromacs.org<BR>http://www.gromacs.org/mailman/listinfo/gmx-users<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.</BLOCKQUOTE></BODY></HTML>