Hi Amanda,

I am using the command:
cmd.dist("interest_polar_conts","exp_interest","exp_interest",quiet=1,mode=2,label=1,reset=1);cmd.enable("interest_polar_conts")

to find the polar contacts.

This command creates an object in the panel but I cannot figure out
how to print the information I am seeing, like the distance and the
atoms involved, in the viewer to a file.

as far as I know the "raw data" of distance objects cannot be accessed.

Have a look at the attached script, it does a very similar job to the distance command but returns atom pairs with (model,index) keys.

pairlist = polarpairs("exp_interest", "exp_interest", cutoff=3.6, \
    name="interest_polar_conts")

You can drop the 'name' argument if you don't need the object for visual inspection but only the pair list.

Cheers,
  Thomas

--
Thomas Holder
MPI for Developmental Biology

Attachment: pairs.py
Description: application/chimera

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
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