Hi Laurie,

The list of bonds is accessible with cmd.get_model(), see
https://pymolwiki.org/index.php/Get_Model

PyMOL> m = cmd.get_model()
PyMOL> print m.bond[0].index
[0, 1]
PyMOL> print m.bond[0].order
1

Cheers,
  Thomas

On 26 Jan 2017, at 13:50, Laurence Williams <williams...@cardiff.ac.uk> wrote:

> Dear pymol users,
> 
> I understand that pymol does not explicitly need connectivity data to 
> visualise molecules as bonds are drawn when two atoms are within in a given 
> distance. However, once those bonds are drawn for the molecule, is 
> connectivity data stored somewhere whilst the file is in use? I ask with the 
> aim to extract that data into a python object.
> 
> Thanks
> Laurie

-- 
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
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