Skip to content

Plugin Molecule Comparator

Hiromichi Yokoyama edited this page Nov 12, 2026 · 10 revisions

Plugin: Molecule Comparator

Molecule Comparator compares, aligns, and overlays multiple 3D molecular structures concurrently, computing Root Mean Square Deviations (RMSD) and exporting aligned geometries.

Repository Bundled in moleditpy-plugins (plugins/Molecule_Comparator)
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 Plugins ▸ Molecule Comparator...
Extra dependencies None (uses RDKit, PySide6 from the MoleditPy environment)

See Official Plugins for the full catalogue.


1. Multi-molecule 3D comparison

  • Load multiple structures: Compare structures from different calculation levels (e.g. DFT vs. force field, experimental X-ray vs. optimized model, or two conformational isomers).
  • Kabsch alignment algorithm: Aligns structures rigid-body in 3D space to minimize root-mean-square displacement between corresponding atom pairs.
  • Heavy-atom and all-atom RMSD: Compute RMSD considering heavy atoms only or including hydrogens.
  • Matched atoms: With the Substructure (MCS) method, the results table, Copy Results and the CSV export show how many atoms the common substructure covers, for example 72/74. The search first requires matching valences and bond orders. Structures without hydrogens (X-ray models before hydrogen placement, XYZ imports) come out of bond perception with radicals and different bond orders, and that strict search can shrink to a few atoms. When it covers less than half of the smaller molecule, the plugin searches again comparing only elements and connectivity and keeps the larger match, marked (loose). A match below 50% is flagged with a warning mark and a dialog, because the RMSD of such a small fragment does not describe the whole molecule.

2. Visualization and per-atom deviations

  • Color-coded overlay: Overlays multiple molecules in distinct colors in the 3D viewer.
  • Per-atom distance table: Tabulates the geometric distance between matching atom pairs, identifying local areas of significant structural deviation.
  • Opacity controls: Adjust transparency for individual overlay layers to inspect internal alignments.

3. Loading structures

  • Add Current: takes the molecule in the main window (it needs 3D coordinates; convert it first otherwise).
  • Load File…: several files at once, as .mol, .sdf, .pdb, .xyz or .mol2. Every record of an SDF is loaded, not just the first, and a file with an unfamiliar extension is still tried as XYZ.
  • Drag and drop: drop structure files straight onto the dialog.
  • XYZ: read through the main window's own importer first, so the headerless, commented, mis-counted, multi-frame and non-UTF-8 files it accepts load here too; bonds are perceived from the geometry for display. Anything that cannot be read is named in one summary rather than failing silently.

4. Coordinate export

  • Export aligned coordinates: Right-click any structure in the comparator list to export its rotated and translated Cartesian coordinates as a clean .mol or .xyz file.

Usage notes

XYZ coordinates must be finite. Alignment applies to the active comparison entries after successful completion.


5. See also


This page documents Molecule Comparator v2026.11.13, and was last updated on 2026-11-13. See REGISTRY/plugins.json for the current version.

Clone this wiki locally