[Chimera-users] redirecting runCommands output

Bala subramanian bala.biophysics at gmail.com
Thu Jun 10 04:36:13 PDT 2010

I wrote a small script to calculate the distance between two atoms in a list
of pdb files. I would like to know how i can redirect the message that
appears in replyobj to a text file. Some chimera commands like findhbon has
option to save the result in file. But distance command dosent have the

 import glob
 from chimera import runCommand as rc

 filenames=[ fn for fn in glob.glob('*.pdb.*')]

 for fn in filenames:
     rc("open " + fn)
*     rc("distance :1 at CA :166 at CA")  # I have to write this distance to a
     rc("close all")

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20100610/6edcf909/attachment.html>

More information about the Chimera-users mailing list