VMD-L Mailing List
From: Seibold, Stephen (Seibold79_at_stmary.edu)
Date: Fri Jun 10 2011 - 10:05:21 CDT
- Next message: Salvatore Mario Cosseddu: "Re: Selecting multiple ranges"
- Previous message: John Stone: "Re: Selecting multiple ranges"
- In reply to: John Stone: "Re: Selecting multiple ranges"
- Next in thread: Salvatore Mario Cosseddu: "Re: Selecting multiple ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Thanks John.I read the "selection methods" part, but I misunderstood it. Thanks so much for the clarifying it for me.
Steve
________________________________________
From: John Stone [johns_at_ks.uiuc.edu]
Sent: Friday, June 10, 2011 9:43 AM
To: Seibold, Stephen
Cc: vmd-l_at_ks.uiuc.edu
Subject: Re: vmd-l: Selecting multiple ranges
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: Salvatore Mario Cosseddu: "Re: Selecting multiple ranges"
- Previous message: John Stone: "Re: Selecting multiple ranges"
- In reply to: John Stone: "Re: Selecting multiple ranges"
- Next in thread: Salvatore Mario Cosseddu: "Re: Selecting multiple ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]