| Literature DB >> 18328109 |
Noel M O'Boyle1, Chris Morley, Geoffrey R Hutchison.
Abstract
BACKGROUND: Scripting languages such as Python are ideally suited to common programming tasks in cheminformatics such as data analysis and parsing information from files. However, for reasons of efficiency, cheminformatics toolkits such as the OpenBabel toolkit are often implemented in compiled languages such as C++. We describe Pybel, a Python module that provides access to the OpenBabel toolkit.Entities:
Year: 2008 PMID: 18328109 PMCID: PMC2270842 DOI: 10.1186/1752-153X-2-5
Source DB: PubMed Journal: Chem Cent J ISSN: 1752-153X Impact factor: 4.215
Figure 1The relationship between Python modules described in the text and the OpenBabel C++ library. Python modules are shown in green; the C++ library is shown in blue.
Attributes and methods supported by the Pybel Molecule object
| OBMol | The underlying OBMol object |
| atoms | A list of Pybel Atoms |
| charge | The total charge (GetTotalCharge) |
| data | A MoleculeData object for access to data fields |
| dim | The dimensionality of the coordinates (GetDimension) |
| energy | The heat of formation (GetEnergy) |
| exactmass | The mass calculated using isotopic abundance (GetExactMass) |
| flags | The set of flags used internally by OpenBabel (GetFlags) |
| formula | The stoichiometric formula (GetFormula) |
| mod | The number of nested BeginModify() calls (Internal use) (GetMod) |
| molwt | The standard molar mass (GetMolWt) |
| spin | The total spin multiplicity (GetTotalSpinMultiplicity) |
| sssr | The smallest set of smallest rings (GetSSSR) |
| title | The title of the molecule (often the filename) (GetTitle) |
| unitcell | Unit cell data (if present) |
| write | Write the molecule to a file or return it as a string |
| calcfp | Return a molecular fingerprint as a Fingerprint object |
| calcdesc | Return the values of the group contribution descriptors |
| __iter__ | Enable iteration over the Atoms in the Molecule |
*Where a Molecule attribute is a direct replacement for a 'Get' method of the underlying OBMol, the name of the method is given in parentheses.