Hi,

I need to get the atom types from molecules. I am using a Python/PyMOL
script. I have the following code


def get_atom_type(selection):
    pdb_string = cmd.get_pdbstr(selection)
    mol = ob.OBMol()
    obconversion = ob.OBConversion()
    obconversion.SetInAndOutFormats('pdb', 'pdb')
    obconversion.ReadString(mol, pdb_string)
    ff = ob.OBForceField.FindForceField('GAFF')
    ff.Setup(mol)
    return at.GetType() for at in ob.OBMolAtomIter(mol)


The atom type from babel are too simple for my needs. How can I get the
atom types from the forcefield?

Thanks in advance,
Osvaldo.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to