moleculekit.openmmtools module#
- moleculekit.openmmtools.minimize_soft_potential(mol, mobile_atom_indices, max_iterations=200)#
Run a soft-potential energy minimization on selected atoms.
All other atoms are frozen (mass = 0). Uses a soft repulsive
CustomNonbondedForceso overlapping atoms are gently pushed apart rather than exploding. Only interactions involving at least one mobile atom are computed.Harmonic bond and angle restraints are added for bonds in
mol.bondsinvolving at least one mobile atom; equilibrium values are taken from the current coordinates. This keeps bond lengths and angles close to their starting geometry so the minimization resolves clashes by rotating dihedrals rather than distorting covalent structure.- Parameters:
- Returns:
True if minimization was performed, False if OpenMM is unavailable.
- Return type:
- moleculekit.openmmtools.openmm_to_molecule(topology, positions)#