Skip to content

Commit

Permalink
Update protein_ligand_prep.py
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Oct 31, 2023
1 parent 8069754 commit 10434e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openmmdl/openmmdl_simulation/scripts/protein_ligand_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ def prepare_ligand(ligand_file, minimize_molecule=True):

# Minimize the molecule with the MMFF94s Forcefield if selected.
if minimize_molecule:
from rdkit.Chem import AllChem
AllChem.MMFFOptimizeMolecule(rdkitmolh, maxIters=2000)

# Converting of the ligand from RDKit to an openforcefield Molecule object.
return Molecule(rdkitmolh)
of_molecule = Molecule(rdkitmolh)
print(of_molecule)

return of_molecule

def rdkit_to_openmm(rdkit_mol, name):
"""
Expand Down

0 comments on commit 10434e7

Please sign in to comment.