On 05/01/2014 11:18 AM, John Doe wrote:
> Hi Nicolas,
> 
> Thanks for the suggestion but I failed to mention I am using Python.

pybel molecule:

for a in molecule.atoms :
  print a.OBAtom.GetType()

Element:

et = openbabel.OBElementTable()
elt = et.GetSymbol( a.OBAtom.GetAtomicNum() )

NOTE: elt.lower() can be "xx"

HTH,
-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to