What's going wrong with this code? _______CODE_______ from pymol import cmd
def process_line(x): pdbid,res,chain,num = x.split() cmd.load(pdbid) cmd.select("target","(resn %s and chain %s and resi %s)"%(res,chain,num)) cmd.select("zone2","(br. (target expand 9 and not (target expand 4.5)) and not resn HOH and not HET)" #cmd.save("%s-%s-%s-%s-zone1.pdb"%(pdbid,res,chain,num),"zone1") cmd.save("%s-%s-%s-%s-zone2"%(pdbid,res,chain,num),"zone2") #cmd.print pdbid, "done\n"; cmd.delete(pdbid) def process_all(filename): for line in open(filename): process_line(line) process_all("try.txt") _________ try.txt looks like this: 10gs.pdb VWW A 210 11ba.pdb UPA A 125 11bg.pdb U2G A 130 ___I am getting this error: File "/usr/lib/pymodules/python2.6/pymol/parser.py", line 338, in parse parsing.run_file(path,self.pymol_names,self.pymol_names) File "/usr/lib/pymodules/python2.6/pymol/parsing.py", line 455, in run_file execfile(file,global_ns,local_ns) File "process.py", line 10 cmd.save("%s-%s-%s-%s-zone2"%(pdbid,res,chain,num),"zone2") ^ SyntaxError: invalid syntax PLEASE HELP! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ 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