0.0
The project is in a healthy, maintained state
Ruby bindings for OpenBabel, an open-source chemical toolbox for molecular modeling, cheminformatics, and computational chemistry. Supports 110+ molecular file formats (SMILES, SDF, MOL2, PDB, CIF, etc.), molecular fingerprints, 2D/3D coordinate generation, and structure manipulation. The gem compiles OpenBabel 3.1.1 from source with SWIG bindings during installation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

openbabel gem

GEM for OpenBabel, a chemical library by Geoff Hutchison and others.

openbabel gem has been tested with ruby 1.9 and 2.0. It compiles only on POSIX systems and requires the following programs and libraries (details at https://openbabel.org/docs/Installation/install.html#compile-language-bindings):

  • C++ compiler (GCC 4+, Clang, or Intel Compiler 11+)
  • CMake 2.8 or later
  • git
  • make
  • Eigen 3 (required for Ruby bindings)
  • libxml2 (optional, for CML/XML formats)
  • zlib (optional, for gzipped files)
  • Cairo (optional, for PNG depiction)

Install

gem install openbabel

It downloads the sources, compiles and installs OpenBabel (if not installed system wide) and ruby bindings. If OpenBabel is not yet installed installation may last very long - please be patient.