VMD-L Mailing List
From: Myunggi Yi (myunggi_at_gmail.com)
Date: Mon Sep 21 2009 - 13:57:29 CDT
- Next message: Myunggi Yi: "atom selection"
- Previous message: John Stone: "[carlos.simmerling@gmail.com: ACS awards application announcements]"
- In reply to: Myunggi Yi: "atom selection"
- Next in thread: Myunggi Yi: "Re: atom selection"
- Reply: Myunggi Yi: "Re: atom selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
I found the problem.
I can do the following.
set sel [atomselect top "segid $i"]
atomselect42
>Main< (16T) 32 % $sel num
69
However, I cannot do the following.
>Main< (16T) 34 % set sel [atomselect top "name "B.*" and segid $i"]
extra characters after close-quote
Is there a way to select name "B.*" and segid $variable together?
On Mon, Sep 21, 2009 at 2:45 PM, Myunggi Yi <myunggi_at_gmail.com> wrote:
> Dear VMD users,
>
> I have an atom selection problem.
> I want to use a variable in the atom selection.
>
> =====================
> >Main< (16T) 21 % set i 1
> >Main< (16T) 22 % set sel [atomselect top {name "B.*" and segid $i}]
> atomselect39
> >Main< (16T) 23 % $sel num
> 0
> >Main< (16T) 24 % set sel [atomselect top {name "B.*" and segid 1}]
> atomselect40
> >Main< (16T) 25 % $sel num
> 26
> =====================
>
> As you see the above, if I use a variable I cannot select the atoms.
>
> Can anyone help?
>
>
>
> --
> Best wishes,
>
> Myunggi Yi
> ==================================
> 91 Chieftan Way
> Institute of Molecular Biophysics
> Florida State University
> Tallahassee, FL 32306
>
> Office: +1-850-645-1334
>
> http://sites.google.com/site/myunggi/
> http://people.sc.fsu.edu/~myunggi/ <http://people.sc.fsu.edu/%7Emyunggi/>
>
>
-- Best wishes, Myunggi Yi ================================== 91 Chieftan Way Institute of Molecular Biophysics Florida State University Tallahassee, FL 32306 Office: +1-850-645-1334 http://sites.google.com/site/myunggi/ http://people.sc.fsu.edu/~myunggi/
- Next message: Myunggi Yi: "atom selection"
- Previous message: John Stone: "[carlos.simmerling@gmail.com: ACS awards application announcements]"
- In reply to: Myunggi Yi: "atom selection"
- Next in thread: Myunggi Yi: "Re: atom selection"
- Reply: Myunggi Yi: "Re: atom selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]