VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Jan 20 2006 - 16:43:20 CST
- Next message: Craig Knox: "rod-like shapes"
- Previous message: Mgr. Lubos Vrbka: "Re: measure hbonds question"
- In reply to: Mgr. Lubos Vrbka: "Re: measure hbonds question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Lubos,
On Fri, Jan 20, 2006 at 11:05:16PM +0100, Mgr. Lubos Vrbka wrote:
> >You can exlude things from an atom selection like this:
> > set ow [atomselect top "name OW and not index 5"]
> > The "and not" does the job in this case.
> this looks really promising... i'll definitely try it out.
>
> i don't know tcl and internal of vmd very well, is something like the
> following possible?
>
> set ow [atomselect top "name OW"]
> set oneresid [atomselect top "index 5"]
> set excluded [$ow and not $oneresid]
Not the way you've written it, but you could do something like this:
set excluded [atomselect top \
[format "%s %s %s" [$ow text] "and not" [$oneresid text]]]
John
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Craig Knox: "rod-like shapes"
- Previous message: Mgr. Lubos Vrbka: "Re: measure hbonds question"
- In reply to: Mgr. Lubos Vrbka: "Re: measure hbonds question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]