Repository navigation
Plugin HOMA Analyzer
HOMA Analyzer computes the HOMA (Harmonic Oscillator Model of Aromaticity) index of every ring in the MoleditPy 3D structure. It labels each ring center in the 3D view, optionally with a sphere colored by HOMA, lists the rings in a panel on the right, and exports the ring list and every ring bond length as CSV. It warns when the structure was last optimized with a force field, whose bond lengths do not suit HOMA.
| Repository | moleditpy_homa_analyzer |
| Author | HiroYokoyama |
| Supported OS | Windows, macOS, Linux, WSL |
| Supported Python | >=3.9, <3.15 |
| Supported MoleditPy | >=5.0.0, <6.0.0 |
| First-party plugin license | LGPL-3.0-or-later |
| Menu location | Analysis ▸ HOMA Analyzer |
| Extra dependencies | None beyond MoleditPy (NumPy, PySide6, PyVista, RDKit) |
See Official Plugins for the full catalogue.
- Build or load a structure and show it in 3D. Use a quantum-chemically optimized geometry (see §4).
- Choose
Analysis ▸ HOMA Analyzer. A panel opens on the right of the main window. - Read the values in the table or at the ring centers in the 3D view. The panel recalculates automatically when the structure is redrawn or re-optimized; Recalculate forces it.
- Select rows in the table to highlight those rings in 3D with a yellow tube along their bonds. Clear selection removes the selection.
- Export CSV... saves the ring list. Export bond lengths... saves one row per ring bond, for the selected rings or, with nothing selected, for every ring.
| Column | Meaning |
|---|---|
| Ring | Ring number, also used for the 3D label |
| Atoms | Ring atoms in bonded order, with 1-based atom numbers |
| Size | Number of ring atoms |
| HOMA | The HOMA index; n/a when a ring bond has no parameters (the tooltip names it) |
| EN, GEO | The decomposition HOMA = 1 − EN − GEO, for rings whose bonds are all of one type |
Both CSV files start with the last optimization method and, if there is one, the geometry warning. The bond-length file lists each bond's atoms, type, length, Ropt, α and its term α(Ropt − R)²/n, so 1 minus the sum of a ring's terms is its HOMA.
The tabs under the table set what the 3D view shows. Changes apply immediately and are kept for later sessions.
| Tab | Settings (defaults) |
|---|---|
| Labels | Show (on); font (Arial, any installed font); size (18 pt); B / I / U (bold on); coloring (fixed white, or HOMA gradient); decimals (3) |
| Spheres | Show (off); coloring (HOMA gradient, or a fixed color); radius (0.30 Å); opacity (60 %) |
| Gradient | Colormap (coolwarm, from the Mapped Cube Viewer's list); range (0 to 1, Fit to rings); legend: show, title, orientation, tick labels, font size, text color |
Labels and spheres that use the gradient share one colormap and range, so one legend describes both. Labels are drawn with Qt, so any installed font and underline work, and they stay on top of the molecule.
For a ring of n bonds, HOMA = 1 − (1/n) Σ αj(Ropt,j − Ri)², with the bond-type parameters of Krygowski (1993) for C–C, C–N, C–O, C–P, C–S, N–N and N–O. Rings containing any other bond show n/a. Rings whose bonds are all of one type are split into EN (mean bond elongation) and GEO (bond alternation) after Krygowski and Cyrański (1996). Rings are RDKit's smallest set of smallest rings, and bond lengths come from the 3D coordinates.
The formula, the parameters, the EN/GEO split and the citations were checked independently against the literature and Crossref. The tests reproduce the published benzene value (HOMA 0.979 at C–C 1.397 Å) and a B3LYP/def2-SVP ORCA benzene geometry (HOMA 0.968), and check r2SCAN-3c geometries of naphthalene (0.812, published 0.802) and phenanthrene (outer rings 0.885, middle ring 0.535; MMFF94s gives the middle ring 0.788). The full parameter table and references are in the README.
HOMA is computed from bond lengths, so it is only as good as the geometry. The panel reads the method MoleditPy recorded for the last successful optimization and shows a warning when it is a force field (MMFF94, MMFF94s, UFF, GAFF, Ghemical, PMEFF or a constrained force-field optimization) or when the structure was embedded without optimization. No warning is shown for structures loaded from a file or optimized by a quantum-chemical plugin. From MoleditPy 5.1.2 the recorded method follows the structure and the panel takes it as it is. On 5.1.1 and earlier MoleditPy keeps the last method when a new structure is loaded, so the panel checks that the method belongs to the structure on screen; there, a force-field structure restored by redo or opened from a .pmeprj shows no warning. A force field added later by a plugin under a name other than these is not recognized.
- Official Plugins — the full plugin catalogue
- Plugin: NICS Placer — magnetic aromaticity probes at the same ring centers
- Plugin: ORCA NICS Analyzer — reads the NICS results
- Plugin: ORCA Input Generator Pro — the geometry optimization HOMA needs
This page documents HOMA Analyzer v0.1.4, and was last updated on 2026-11-03. See REGISTRY/plugins.json for the current version.