Hi Krisztina,

> [...] The only nag is how to convert atom IDs in i1 and i2 into
> atom names?

I usually first prepare an id-to-something map where I later on can look 
up the desired atom properties (like the name).

from pymol import cmd, stored
stored.i2n = dict()
cmd.iterate('hcpl1 or hcpl2', \
     'stored.i2n[model,index] = (resi,resn,name)')

for (i1, i2, dist) in get_raw_distances('tmp'):
     print stored.i2n[i1], stored.i2n[i2]


Cheers,
   Thomas

-- 
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to