Molecule to SMILES writer via OpenBabel.
More...
#include <SMILESwriterOB.hh>
|
static std::auto_ptr
< OpenBabel::OBConversion > | converter = std::auto_ptr<OpenBabel::OBConversion>() |
| the OpenBabel conversion object used More...
|
|
Utility class to generate a canonical SMILES string from a molecule
graph representation. It expects atom (node) and edge (bond) label
following the Daylight's SMILES description. See
ggl::chem::SMILES_grammar for further details.
It utilizes the OpenBabel library (http://openbabel.org) for the
conversion.
- Author
- Martin Mann (c) 2009 http://www.bioinf.uni-freiburg.de/~mmann/
Definition at line 34 of file SMILESwriterOB.hh.
ggl::chem::SMILESwriterOB::SMILESwriterOB |
( |
| ) |
|
static std::string ggl::chem::SMILESwriterOB::getSMILES |
( |
const Molecule & |
mol | ) |
|
|
inlinestatic |
Generates a canonical SMILES string of the given graph representation of a molecule.
NOTE: THE FUNCTIONALITY IS INCOMPLETE, i.e. only a few atom and bond types are possible! See class description!
- Parameters
-
mol | the molecule graph to parse |
- Returns
- a canonical SMILES string representing the given molecule
Definition at line 56 of file SMILESwriterOB.hh.
std::auto_ptr< OpenBabel::OBConversion > ggl::chem::SMILESwriterOB::converter = std::auto_ptr<OpenBabel::OBConversion>() |
|
staticprotected |
The documentation for this class was generated from the following file: