Friends,<br>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 same.<br>
<br> import glob<br> from chimera import runCommand as rc<br><br> <br> filenames=[ fn for fn in glob.glob('*.pdb.*')]<br> <br> for fn in filenames:<br> rc("open " + fn)<br><b> rc("distance :1@CA :166@CA") # I have to write this distance to a file.</b><br>
rc("close all")<br> <br>Thank you,<br>Bala<br> <br><br>