Hi. I'm trying to use Openbabel to detect rotatable bonds in a small
molecule. 

Here is the code:

pdb="myfile.pdb"
eltab = openbabel.OBElementTable()
mol = openbabel.OBMol()
obConversion = openbabel.OBConversion()
obConversion.SetInFormat("sdf")
obConversion.ReadFile(mol, pdb)
for i in xrange(mol.NumBonds()):
    b = mol.GetBond(i)
    st = eltab.GetSymbol(b.GetBeginAtom().GetAtomicNum())
    en = eltab.GetSymbol(b.GetEndAtom().GetAtomicNum())
    if b.IsRotor():
        print st, b.GetBeginAtomIdx(), "rot", en, b.GetEndAtomIdx()

As I can see, it treat as a rotatable bond only single bonds. But I know
that in my molecule there are some peptide bonds that could not be treated
as rotatable. How can I make this script to exclude peptide bonds from be
treated as rotatable?
Thanks in advance, 



--
View this message in context: 
http://forums.openbabel.org/Openbabel-rotation-bonds-search-tp4656052.html
Sent from the General discussion mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to