<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"><<a href="mailto:teemu.murtola@cbr.su.se" target="_blank">teemu.murtola@cbr.su.se</a>></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 <<a href="mailto:muxiaojia2010@gmail.com">muxiaojia2010@gmail.com</a>> wrote:<br>
> e.g, I want to make an "HN" 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>
"resnr 2 and name H N",<br>
or if you need the atoms in a different order (changing the order of H<br>
and N above has no effect),<br>
"resnr 2 and name H N permute 2 1".<br>
You can also use plus or merge using the syntax "nameH plus nameN"<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'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'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>