<div class="gmail_extra">Thanks for the reply!<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 3:28 AM, Teemu Murtola <span dir="ltr">&lt;<a href="mailto:teemu.murtola@cbr.su.se" target="_blank">teemu.murtola@cbr.su.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Apr 26, 2012 at 04:19, mu xiaojia &lt;<a href="mailto:muxiaojia2010@gmail.com">muxiaojia2010@gmail.com</a>&gt; wrote:<br>


&gt; e.g, I want to make an &quot;HN&quot; group of both H and N from my 2nd residue,<br>
<br>
</div>There are multiple ways to achieve what you want with g_select.<br>
Probably the easiest is<br>
  &quot;resnr 2 and name H N&quot;,<br>
or if you need the atoms in a different order (changing the order of H<br>
and N above has no effect),<br>
  &quot;resnr 2 and name H N permute 2 1&quot;.<br>
You can also use plus or merge using the syntax &quot;nameH plus nameN&quot;<br>
(plus and merge are equivalent if you are merging selections with<br>
single atoms), but they are meant for more complex situations. You<br>
cannot assign the result of a plus/merge into a variable, which may be<br>
your source of confusion.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Teemu<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
gmx-users mailing list    <a 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&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
</div></div></blockquote></div><br></div>