Skip to content

Commit e98e3e6

Browse files
authored
Merge pull request #166 from talagayev/lipid21_implementation
Fix `Amber19` Water model
2 parents 85c3d10 + e745e41 commit e98e3e6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ talagayev
2424
- Addition of `CHARM2024` forcefield (2025-11-03, PR #163)
2525

2626
### Fixed
27+
- Adjusted the water selection for `Amber19` (2025-12-08, PR #166)
2728
- Fixes import error in `visualization.ipynb` (2025-10-14, PR #159)
2829
- Fixes numpy error in due current incompatbility with parmed (2025-10-19, PR #160)
2930

openmmdl/openmmdl_simulation/scripts/forcefield_water.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def generate_transitional_forcefield(
215215
if add_membrane:
216216
if protein_ff in old_amber:
217217
transitional_forcefield = app.ForceField(protein_ff, "tip3p.xml", "amber14/lipid17.xml")
218+
elif protein_ff == "amber19-all.xml":
219+
transitional_forcefield = app.ForceField(protein_ff, "amber19/tip3p.xml",)
218220
else:
219221
transitional_forcefield = app.ForceField(protein_ff, "amber14/tip3p.xml")
220222
else:

openmmdl/tests/openmmdl_simulation/forcefield_water_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,9 @@ def test_generate_transitional_forcefield(sample_rdkit_molecule):
336336
"amber14-all.xml", "tip3p.xml", True
337337
)
338338
assert isinstance(transitional_forcefield_4, app.ForceField)
339+
340+
# Test for amber19
341+
transitional_forcefield_5 = generate_transitional_forcefield(
342+
"amber19-all.xml", "amber19/tip3p.xml", False, "gaff", sample_rdkit_molecule
343+
)
344+
assert isinstance(transitional_forcefield_5, app.ForceField)

0 commit comments

Comments
 (0)