<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi Justin<br></div><div><br></div><div>You wrote: <br></div><div><br></div><div>&gt;If you do not specify any output file, the default is this .xvg file 
that tells you how many atoms satisfied the &gt;criterion specified in the 
selection string. If you want a coordinate file, it's a two-step 
process.<br>&gt;<br>&gt;1. Run g_select using the -on flag to produce an output index file of the atoms that satisfy your criterion.<br>&gt;<br>&gt;2. Use trjconv with that index file in and your coordinate file to generate the structure with those atoms.</div><div><br></div>I used the command:<br><br>g_select -s molecule_in_water.pdb -select '"Close to ISO" resname SOL and within 0.5 of resname ISO' -on <br><br>And got the size.xvg file and an index.ndx file. Than I want to make my coordinate file by<br><br>trjconv -n index.ndx<br><br>and got the error<br><br>Can not open file:<br>traj.xtc<br><br>I have no traj.xtc file. <br><br>Thank you for helping me<br><br>Greetings<br>Lara<br><br><br><br><br><span></span><div><br><span></span></div><div><span></span></div><div><br></div>  <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;"> <div
 dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Justin A. Lemkul &lt;jalemkul@vt.edu&gt;<br> <b><span style="font-weight: bold;">An:</span></b> Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt; <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 17:27 Samstag, 14.April 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [gmx-users] File editing - only one layer of water around a molecule<br> </font> </div> <br><br><br>Lara Bunte wrote:<br>&gt; Hi Justin<br>&gt; <br>&gt; The difference in my<br>&gt; <br>&gt; g_select -s molecule_in_water.pdb -select '"Close to ISO" resname SOL and within 0.5 of group "ISO"'<br>&gt; <br>&gt; and your<br>&gt; <br>&gt; g_select -s molecule_in_water.pdb -select '"Close to ISO" resname SOL and within 0.5 of resname ISO'<br>&gt; <br>&gt; is, that the last ISO is not in quotation marks. Could you please explain?<br>&gt;
 <br><br>There is a much greater difference.&nbsp; The first command uses 'group "ISO"' which assumes that there is a group (either generated by default or present in a supplied index file) named "ISO."&nbsp; Apparently this is not the case.&nbsp; What I used was 'resname ISO' which is generic syntax for any residue name that I like (i.e., not a group).&nbsp; You can use it with any residue name in the structure.<br><br>&gt; With your command I got this time no error but I got other stuff that I don't understand:<br>&gt; <br>&gt; 1.)<br>&gt; I got this warnings:<br>&gt; <br>&gt; WARNING: masses and atomic (Van der Waals) radii will be determined<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; based on residue and atom names. These numbers can deviate<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from the correct mass and radius of the atom type.<br>&gt; <br>&gt; <br>&gt; WARNING: if there are broken molecules in the trajectory file,<br>&gt;&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; they can not be made whole without a run input file<br>&gt; <br>&gt; Can I ignore this or is this serious?<br>&gt; <br><br>These are probably not important.&nbsp; They are generic warnings that many Gromacs programs will produce if they are run without a .tpr file.<br><br>&gt; 2.)<br>&gt; My output is one file called size.xvg. It contains<br>&gt; <br>&gt; # This file was created Sat Apr 14 16:55:56 2012<br>&gt; # by the following command:<br>&gt; # g_select -s molecule_in_water.pdb -select "Close to ISO" resname SOL and within 0.5 of resname ISO<br>&gt; #<br>&gt; # g_select is part of G R O M A C S:<br>&gt; #<br>&gt; # Green Red Orange Magenta Azure Cyan Skyblue<br>&gt; #<br>&gt; @&nbsp; &nbsp; title "Selection size"<br>&gt; @&nbsp; &nbsp; xaxis&nbsp; label "Time (ps)"<br>&gt; @&nbsp; &nbsp; yaxis&nbsp; label "Number"<br>&gt; @TYPE xy<br>&gt; # Selections:<br>&gt; #&nbsp;  "Close to ISO" resname SOL and within 0.5 of resname ISO<br>&gt;
 #<br>&gt; @ view 0.15, 0.15, 0.75, 0.85<br>&gt; @ legend on<br>&gt; @ legend box on<br>&gt; @ legend loctype view<br>&gt; @ legend 0.78, 0.8<br>&gt; @ legend length 2<br>&gt; @ s0 legend "Close to ISO"<br>&gt;&nbsp; &nbsp; &nbsp;  0.000&nbsp; 848.000<br>&gt; <br>&gt; What is the interpretation of this? What I need is a new pdb. file that has to contain only the molecule ISO and the water layer SOL around it. Is this possible with g_select?<br>&gt; <br><br>If you do not specify any output file, the default is this .xvg file that tells you how many atoms satisfied the criterion specified in the selection string. If you want a coordinate file, it's a two-step process.<br><br>1. Run g_select using the -on flag to produce an output index file of the atoms that satisfy your criterion.<br><br>2. Use trjconv with that index file in and your coordinate file to generate the structure with those atoms.<br><br>-Justin<br><br>&gt; Thanks for helping me.<br>&gt;
 Greetings<br>&gt; Lara<br>&gt; <br>&gt; <br>&gt; p.s.<br>&gt; I use yahoo. I tried to find an "answer to all" option or something like that. Again after pressing answer the mail should go only to Justin. I put the mailing list in cc. Is here someone using yahoo also and know how to fix this?<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; *Von:* Justin A. Lemkul &lt;<a ymailto="mailto:jalemkul@vt.edu" href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;<br>&gt; *An:* Lara Bunte &lt;<a ymailto="mailto:lara.bunte@yahoo.de" href="mailto:lara.bunte@yahoo.de">lara.bunte@yahoo.de</a>&gt;; Discussion list for GROMACS users &lt;<a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>&gt; *Gesendet:* 16:56 Samstag, 14.April 2012<br>&gt; *Betreff:* Re: [gmx-users] File editing - only one layer of water around a molecule<br>&gt;
 <br>&gt; <br>&gt; <br>&gt; Lara Bunte wrote:<br>&gt;&nbsp; &gt; I still got the problem. What is wrong in this command:<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; g_select -s molecule_in_water.pdb -select '"Close to ISO" resname SOL and within 0.5 of group "ISO"'<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; In the pdb. file ISO is for the molecule and SOL for the water.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Please help<br>&gt;&nbsp; &gt;<br>&gt; <br>&gt; The above command assumes "ISO" is a default group, like "Protein" or something else.&nbsp; You can make selections based on any arbitrary residue name with something like the following:<br>&gt; <br>&gt; g_select -s molecule_in_water.pdb -select '"Close to ISO" resname SOL and within 0.5 of resname ISO'<br>&gt; <br>&gt; Does that work?<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; -- ========================================<br>&gt; <br>&gt; Justin A. Lemkul<br>&gt; Ph.D. Candidate<br>&gt; ICTAS Doctoral Scholar<br>&gt;
 MILES-IGERT Trainee<br>&gt; Department of Biochemistry<br>&gt; Virginia Tech<br>&gt; Blacksburg, VA<br>&gt; jalemkul[at]vt.edu | (540) 231-9080<br>&gt; <a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br>&gt; <br>&gt; ========================================<br>&gt; <br>&gt; <br><br>-- ========================================<br><br>Justin A. Lemkul<br>Ph.D. Candidate<br>ICTAS Doctoral Scholar<br>MILES-IGERT Trainee<br>Department of Biochemistry<br>Virginia Tech<br>Blacksburg, VA<br>jalemkul[at]vt.edu | (540) 231-9080<br><a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br><br>========================================<br>-- gmx-users mailing list&nbsp; &nbsp; <a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br><a
 href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>Please don't post (un)subscribe requests to the list. Use the www interface or send it to <a ymailto="mailto:gmx-users-request@gromacs.org" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br><br><br> </div> </div>  </div></body></html>