From: Tomek Wlodarski (tomek.wlodarski_at_gmail.com)
Date: Wed Mar 25 2009 - 17:56:49 CDT

Dear Goutham,
In your case you can always use "AND":

set sel [atomselect top "resid 1 to 5 AND 10 to 15"]

Maybe it is not so general like Axel idea but it works :)
Best,

Tomek

On Wed, Mar 25, 2009 at 10:54 PM, Goutham <gouthambs_at_gmail.com> wrote:

> Hey,
> Is there a way to merge two atom-selections into one.
> Say for a protein:
>
> set sel1 [atomselect top "resid 1 to 5" ]
> set sel2 [atomselect top "resid 10 to 15"]
>
> Is there a way to merge both selections sel1 and sel2 into newsel. This
> merged selection I want to write into a new pdbfile. Is there a way to do
> this?
>
>
> Thanks
> Goutham
>
>