#!/usr/bin/env python # ch5-1.py from openeye.oechem import * mol = OEGraphMol() OEParseSmiles(mol, "c1ccccc1") mol.SetTitle("benzene") mol.SetEnergy(-20.3) print "Title: ", mol.GetTitle() print "Energy:", mol.GetEnergy()
Much more data can be stored in generic data containers associated with the molecules. The most common is SD file tagged data. In Python, we have added several convenience methods for dealing with SD file tagged data since it is so common.