VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Jun 10 2011 - 09:43:48 CDT
- Next message: Seibold, Stephen: "RE: Selecting multiple ranges"
- Previous message: John Stone: "Re: Problem using rotate command in a script ...(2)"
- In reply to: Seibold, Stephen: "Selecting multiple ranges"
- Next in thread: Seibold, Stephen: "RE: Selecting multiple ranges"
- Reply: Seibold, Stephen: "RE: Selecting multiple ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
Instead of "and" you should be using "or":
set sel0 [atomselect 0 "resid 1 to 10 or resid 50 to 100"]
When you use "and" both parts of the expression must be true
at the same time for atoms to be selected. When using "or" an
atom is selected if either part of the expression is true.
This is described in the VMD User's Guide. It's similar to
using advanced google searching syntax, database queries, etc.
Cheers,
John Stone
vmd_at_ks.uiuc.edu
On Fri, Jun 10, 2011 at 02:28:48PM +0000, Seibold, Stephen wrote:
> I have been in the TkC to select multiple ranges to do a "fit". I want to
> select multiple ranges separated by residues; however, I cannot find the
> method to do this. I tried
> >set sel0 [atomselect 0 "resid 1 to 10 and resid 50 to 100"]
> However, nothing I do seems to work. I looked on line, but could not
> locate how to do this. I know there must be a way, but am missing it...
> Can someone either tell me or direct me where at in the manual this answer
> is...I cannot find it.
> Cheers, Steve
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/ Fax: 217-244-6078
- Next message: Seibold, Stephen: "RE: Selecting multiple ranges"
- Previous message: John Stone: "Re: Problem using rotate command in a script ...(2)"
- In reply to: Seibold, Stephen: "Selecting multiple ranges"
- Next in thread: Seibold, Stephen: "RE: Selecting multiple ranges"
- Reply: Seibold, Stephen: "RE: Selecting multiple ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]