To demonstrate how all of these atom and bond typing routines are used together, the following example shows how to write a Sybyl mol2 file using low-level I/O.
def MyWriteMol2Molecule(ofs, mol):
OEFindRingAtomsAndBonds(mol)
OEAssignAromaticFlags(mol, OEAroModelTripos)
OETriposAtomTypeNames(mol)
OETriposBondTypeNames(mol)
OETriposAtomNames(mol)
OEWriteMol2File(ofs, mol, 0)