obgen(1)

obgen1

Generate 3d coordinates for a molecule

Usage

obgen [OPTIONS] filename

Overview

The obgen tool will generate 3D coordinates for molecules in a file (e.g. multi-molecule SMILES files). The resulting structure will be optimized using the given forcefield and checked for the lowest-energy conformer using a Monte Carlo search. Output will be sent to standard output in the SDF file format.

Options

If no filename is given, obgen will give all options including the available forcefields.

-ff forcefield

Select the forcefield

Environment

OB_RANDOM_SEED

Seed for pseudo random number generator; random seed is used if unset or null. This feature is effective if Open Babel is built with -DOB_USE_OBRANDOMMT cpreprocessor flag (will be automatically enabled when version 4 is released).

Examples

View the possible options, including available forcefields:

obgen

Generate 3D coordinates for the molecule(s) in file test.smi:

obgen test.smi

Generate 3D coordinates for the molecule(s) in file test.smi using the UFF forcefield:

obgen -ff UFF test.smi

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0–10
  3. 11–13
  4. Arch

Authors

The obgen program was contributed by Tim Vandermeersch.

Open Babel is developed by a cast of many, including current maintainers Geoff Hutchison, Chris Morley, Michael Banck, and innumerable others who have contributed fixes and additions. For more contributors to Open Babel, see <https://openbabel.org/docs/Introduction/thanks.html>

From openbabel 3.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.