Skip to content

Plugin Complex Molecule Untangler

Hiromichi Yokoyama edited this page Oct 19, 2026 · 3 revisions

Plugin: Complex Molecule Untangler

Complex Molecule Untangler uses a stochastic Monte Carlo algorithm to resolve severe steric clashes, atomic overlaps, and collapsed coordinate topologies in highly congested or poorly initialized 3D molecular structures.

Repository Bundled in moleditpy-plugins (plugins/Complex_Molecule_Untangler)
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 ▸ Complex Molecule Untangler...
Extra dependencies None (uses RDKit from the MoleditPy environment)

See Official Plugins for the full catalogue.


1. Problem: Severe steric clashes and force field failure

When structures are imported from legacy files, generated from rough 2D sketches, or created by pasting multiple fragments, atoms may accidentally sit directly on top of each other ($r &lt; 0.5\ \mathrm{\AA}$). In such collapsed geometries:

  • Classical gradient-based optimizers (MMFF94, UFF) divide by zero or encounter extreme van der Waals repulsive gradients ($\sim r^{-12}$), causing coordinate explosions or failed embedding.
  • Quantum DFT codes fail to achieve SCF convergence.

2. Monte Carlo untangling algorithm

Complex Molecule Untangler resolves clashes using stochastic sampling:

  • Evaluates interatomic distance matrices across non-bonded atom pairs.
  • Perturbs overlapping fragments via random rotatable-bond torsions and rigid-body fragment displacements.
  • Accepts moves that reduce van der Waals overlap penalties, gently pulling tangled rings, catenanes, and congested cages apart.
  • Restores a clean, clash-free starting geometry ready for normal force-field or DFT minimization.

3. When to use

  • After pasting two molecules that ended up in the same spatial volume.
  • When 2D-to-3D conversion produces tangled macrocycles or knotted polymers.
  • When standard Optimize 3D fails with coordinate errors or produces distorted rings.

4. See also


This page documents Complex Molecule Untangler v2026.10.19, and was last updated on 2026-10-19. See REGISTRY/plugins.json for the current version.

Clone this wiki locally