VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Feb 22 2002 - 16:07:07 CST
- Next message: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Previous message: John Stone: "VMD: EDM and Gaussian "Cube" reader scripts available"
- In reply to: Fei Xu: "AtomSel and Graphics"
- Next in thread: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear Fei,
Can you send us a copy of your script, so I can see more of the
context around the calls you're specifically asking about? Seeing
the other parts of your script would be helpful for me, since Justin,
and our other resident Python gurus, are out of town for a week at
the BPS meeting. I think I can answer your questions if I see the
other parts of your script.
Thanks,
John Stone
vmd_at_ks.uiuc.edu
On Fri, Feb 22, 2002 at 12:26:51PM -0500, Fei Xu wrote:
> I am trying to select residue No.1 in chain I in pd0001.pdb. I met some
> problems as below.
> 1. I should get an integral but I got a list of resids:
> >>> res_I1 = AtomSel('chain I' and 'residue 1')
> >>> res_I1.get('resid')
> [39, 39, 39, 39, 39, 39, 39, 39, 39, 39]
>
>
> 2. I tried to give residue NO.1 in chain I red color, but it said that
> invalid graphics molecule
> >>> for x in res_I1.get('resid'):
> ... color(x,'white')
> ...
> Traceback (most recent call last):
> File "VMD", line 2, in ?
> ValueError: Invalid graphics molecule
>
> I read through the user's guide . But I don't think it tells me python
> script in vmd detailly.What should I do ?
>
> fei xu
-- 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: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Previous message: John Stone: "VMD: EDM and Gaussian "Cube" reader scripts available"
- In reply to: Fei Xu: "AtomSel and Graphics"
- Next in thread: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]