#!/usr/bin/env python # ch4-4.py from openeye.oechem import * ifs = oemolistream() ifs.open() ofs = oemolostream() ofs.open() ifs.SetFormat(OEFormat_SDF) ofs.SetFormat(OEFormat_MOL2) for mol in ifs.GetOEMols(): OEWriteMolecule(ofs, mol)