From: Val Yu <qi...@uc...> - 2016-12-07 06:33:10
|
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 |