iBabel

A native macOS application for Open Babel: convert between more than 140 chemical file formats, search structure files, run Open Babel’s molecular tools, browse and edit molecules, and look compounds up online — without the command line.

iBabel is a GUI (graphical user interface) for the open source cheminformatics toolkit OpenBabel, it started out many years ago as an AppleScript Studio application but has been updated several times to be a native Mac app. iBabel provides an interface to a variety of tools built using OpenBabel, a Ketcher a chemical drawing package and 3Dmol.js for 3D visualisation. It also can be used to access data from PubChem, the NCI/CADD Chemical Identifier Resolver, ChEMBL and UniChem (EMBL-EBI), and the RCSB Protein Data Bank.

Installation and settings

iBabel is a graphical front end, so it needs the Open Babel command-line programs installed on your Mac. Install them with conda or Homebrew.

conda install -c conda-forge openbabel=3.2.1
# or
brew install open-babel

Download iBabel

    iBabel download

    Download latest version of iBabel

    1. Copy iBabel.app into your Applications folder and open it.
    2. iBabel looks for obabel in the usual places (conda, Homebrew, /usr/local) and uses the first one it finds.
    3. To use a different copy, choose iBabel ▸ Settings… and enter the path to obabel. Click Choose… to pick it in Finder, or Detect to search again. To find the path, type which obabel in Terminal.
    4. Settings confirms the Open Babel version and lists the other Open Babel programs found next to it. The Tools tab uses them (obprop, obrms, obspectrophore and so on).

    iBabel runs Open Babel directly. It doesn’t go through a shell, so file names, SMILES and SMARTS containing spaces, quotes or other special characters work as typed.

    Setting the path to obabel, the version found, and the companion programs available to the Tools tab.

    Convert

    File conversion

    Convert between any of the formats Open Babel reads and writes, from SMILES, SD and mol2 to PDB, mmCIF, InChI, quantum-chemistry inputs, and Open Babel 3.2’s new Chemical JSON and Ketcher KET formats. The format menus are alphabetical with full descriptions, and formats your installed copy of Open Babel can’t handle are marked.

    • Format options from Open Babel itself. The read and write options for each format are read live from obabel -H, so they always match the installed version.
    • General: hydrogens (add, delete, pH-dependent, polar or non-polar only), 2D and 3D coordinates with a speed/quality choice, salt stripping, unique molecules, canonical order, joining and splitting, gzip output, record ranges, SMARTS and property filters.
    • Titles & properties: add text, the file name or an index to titles; set a property; add calculated descriptors (MW, logP, TPSA…) as SD fields; delete fields.
    • Structure processing: separate fragments, neutralise charges, partial charges (Gasteiger, MMFF94, EEM, QEq…), fill crystal unit cells, read or write conformers.
    • See the command. The exact obabel command line is shown and can be edited and run, so the GUI also helps you learn the command-line options.
    • Count and List fields read SD and SMILES files directly. They count a multi-gigabyte file in about a second.

    Converting an SD file to SMILES. The options chosen appear as the obabel command, and the log reports the number of molecules converted.

    The Structure processing options: fragments, neutralisation, partial charges, unit cells and conformers.

    Search

    Substructure and similarity searching

    Search a structure file by substructure, exact match or similarity. Type a SMILES or SMARTS query, or click Draw / edit query… to draw it in the built-in Ketcher editor, which runs entirely on your Mac. The editor opens in its own sheet only while you draw, so the rest of the time the results table has the room.

    • Choice of fingerprint for similarity: FP2, FP3, FP4, MACCS or ECFP0–ECFP10. iBabel builds a fastsearch index for each fingerprint the first time it’s needed and reuses it until the data file changes.
    • Similarity results show the Tanimoto coefficient in its own column. Results can be sorted by any column, and a horizontal scroll bar brings long SMILES into view.
    • Names only returns just the molecule names, for quick lists from large databases.
    • Browse file lists every record of the file to be searched (up to 100,000) in the results table, so you can look through it before searching.
    • Draw ↔ query. The editor opens with the current query; Use drawn as SMILES or Use drawn as SMARTS fills the query field and closes it. Double-click a hit, or use Edit in Ketcher, to open it in the editor and refine it as the next query.
    • Selecting a hit shows its structure, with substructure matches highlighted.

    A top-15 similarity search with the FP2 fingerprint. The Tanimoto scores have their own column, and the selected hit is drawn on the right.

    Browse file lists all 559 records before a search; the substructure query is highlighted in the selected structure.

    Tools

    Open Babel’s molecular tools

    Pick a tool in the sidebar, fill in a short form and press Run. Results appear as tables or a 3D preview, the command and any messages appear in the log, and long jobs can be cancelled.

    Open Babel operations

    • Generate 3D coordinates (--gen3d, fastest to best).
    • Conformer search: random, weighted-rotor, systematic or genetic algorithm (--conformer) with a choice of force field.
    • Confab diverse conformer generation with RMSD and energy cut-offs.
    • Minimise and Energy with GAFF, Ghemical, MMFF94, MMFF94s or UFF. Energies are listed in a table.
    • Align / fit molecules to a reference on a SMARTS match.

    Open Babel programs

    • Properties (formula, mass, logP, PSA, MR, rings…), RMSD, torsion rotation, symmetry, tautomers, thermochemistry and probe grids.
    • Spectrophores™ with all calculation options, plus ranking of a whole file by similarity to a query molecule.

    File utilities

    Count lines and records, show the first lines, list SD field names, and split large files into pieces. These read the file directly and are very fast:

    COUNTING AN 8 GB SD FILE (2.9 MILLION RECORDS)TIME
    wc -l (lines)7.4 s
    grep -c '$$$$' (records)11.4 s
    iBabel (lines and records together)0.2 s
    Listing SD fields: previous version390 s
    Listing SD fields: iBabel 62.3 s

    MMFF94 energies for 559 molecules from the Energy tool. The sidebar lists every tool.

    Viewer

    Browse, filter and edit molecules

    Open one or more structure files and browse their records in a table. iBabel indexes SD and SMILES files itself, so moving between records is instant even in large files.

    • Record count (“Showing 73 of 559 records”) that updates after every filter or removal.
    • 2D or 3D display. 2D drawings can highlight SMARTS matches and hide hydrogens. The 3D view (stick, sphere, line or cartoon) generates coordinates when a record has none.
    • Filter by SMARTS (matching or not matching), by property (for example MW<350 logP<3), or by name.
    • Edit in Ketcher. Double-click a record to open it in Ketcher. The default, Copy SMILES to SMARTS, turns the drawing into a filter query and leaves the record alone. Apply edit to recordreplaces the structure in the list (marked ✎); edits can be reverted, and filters and export use the edited structures.
    • Export selected or shown records to any format. SD data fields are kept, even for edited records. Your original files are never changed.
    • Names from PubChem: turn a text file of compound names into a SMILES file and open it.

    A SMARTS filter leaves 73 of 559 records. The matching atoms are highlighted in the drawing.

    The interactive 3D view: rotate and zoom with the mouse.

    Editing a record in Ketcher. The default, Copy SMILES to SMARTS, turns the drawing into a filter query (explicit hydrogens are removed) without changing the record.

    SEEKER

    Online look-ups

    Look compounds up in the main public resources and bring the structures back into iBabel.

    • PubChem: by name, SMILES, InChIKey or CID. Shows identifiers, formula, MW, XLogP and TPSA.
    • CIR (NCI/CADD Chemical Identifier Resolver): names, CAS numbers, SMILES, standard InChI and InChIKey, and 3D structures.
    • ChEMBL: search by name, InChIKey, ChEMBL ID, similarity or substructure. Shows drug-like properties and bioactivities sorted by pChEMBL.
    • UniChem: every database that holds a compound, with links (SMILES and names are converted to an InChIKey first).
    • Protein Data Bank: keyword, PDB ID or ligand-structure search via the RCSB Search API, entry details, structure images, an in-app 3D cartoon view, and PDB/mmCIF download.

    ChEMBL: an InChIKey look-up returns CHEMBL577193 with its bioactivities (MAPK1, Aurora kinase A, CDK2…) and properties.

    PDB: entry 1OB4 with its details and the in-app 3D view.

    UniChem: the databases containing aspirin, each linked to its compound page.

    What’s new

    • Rebuilt for current macOS (13 Ventura or later) with a modern SwiftUI interface in a resizable window.
    • Updated for Open Babel 3.2.1: new formats, current options, and tools rebuilt on today’s obabel operations.
    • Open Babel runs in the background with progress and Cancel, so the window never freezes, and errors are reported instead of failing silently.
    • The Ketcher editor replaces JSME, and drawn structures pass straight into searches and back. In Search it opens in a sheet only while you draw, and Browse file lists the whole file before a search.
    • New: fingerprint choice, similarity column, names-only search, Viewer record count and editing, ChEMBL, the UniChem and RCSB APIs, and much faster file utilities.

    Known Open Babel issues

    These are in Open Babel 3.2.1 itself, not iBabel. iBabel works around or reports them.

    • The genetic-algorithm conformer search crashes in 3.2.1. iBabel defaults to the force-field methods, which work.
    • Open Babel stops reading a SMILES file at the first blank line. The iBabel Viewer works around this, but conversions of such files stop early.
    • Gasteiger partial charges with SD output can drop some charged salts, so check the “molecules converted” count.