Hello,
I used a simple script to calculate the distance between
two objects called chain_a and chain_c in the range of 1
A,
graphically the script works and in the monitor is
possible observe the distance and the residues involved,
I have some problems to print out the distance values and
the residues involved in a .txt file.
The script that I used
is very simple, the txt file is created but inside there
is just one distance and I don't know how insert also
the residues involved,
do you have some idea or suggestion
the script is:
# import PyMOL's command namespace
from pymol import cmd
# open dist.txt for writing
f=open('dist.txt','w')
# calculate the distance and store it in dst
dst=cmd.distance('tmp','chain_a','chain_c',1)
# write the formatted value of the distance (dst)
# to the output file
f.write("%8.3f\n"%dst)
# close the output file.
f.close()
Thanks a lot
Elsa
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]