Hi,

I'm trying to use this script to get a specific dihedral angle from all the
objects and write into a file:

PyMOL>f = open('dih.txt','w')
PyMOL>for obj in cmd.get_object_list():\
PyMOL>    dih =
cmd.dihedral('dih','/obj///655/CA','/obj///655/CB','/obj///655/CG','/obj///655/CD1')\
PyMOL>    f.write(str(dih))

The software shows following complains:
Selector-Error: Invalid selection name "obj".
( ( ( % obj ) & i; 655 & n; CA ) )<--
Selector-Error: Invalid selection name "obj".
( ( ( % obj ) & i; 655 & n; CB ) )<--
Selector-Error: Invalid selection name "obj".
( ( ( % obj ) & i; 655 & n; CG ) )<--
Selector-Error: Invalid selection name "obj".
( ( ( % obj ) & i; 655 & n; CD1 ) )<--
...

What's wrong with my script?

-- 
Val Yu
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to