Dear PyMol Users,
I found an easy way to count total number of bonds in a molecule,
which has been loaded in PyMol viewer:
from chempy import stored, Bond
m = cmd.get_model()
print “number of total bonds:”, len(m.bond)
I hope it will be useful.
Cheers
Vijay
On 3/22/16, Vijay Masand wrote:
>
Dear PyMol Users
While working with a ligand in a pdb file, which I saved in .mol2 file
format, I used following command:
get_bond stick_transparency, *
I observed following outcome in Pymol.
Getting: stick_transparency for 63 bonds in
object "testing".