VMD-L Mailing List
From: Fei Xu (feix_at_rutchem.rutgers.edu)
Date: Fri Feb 22 2002 - 11:26:51 CST
- Next message: Jim Phillips: "NAMD 2.4b2 Release Announcement"
- Previous message: Sam Ansari: "Using Python"
- Next in thread: John Stone: "Re: AtomSel and Graphics"
- Reply: John Stone: "Re: AtomSel and Graphics"
- Reply: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Jim Phillips: "NAMD 2.4b2 Release Announcement"
- Previous message: Sam Ansari: "Using Python"
- Next in thread: John Stone: "Re: AtomSel and Graphics"
- Reply: John Stone: "Re: AtomSel and Graphics"
- Reply: Justin Gullingsrud: "Re: AtomSel and Graphics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]