-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test of protein-ligand MD
- Loading branch information
1 parent
60adc2b
commit e1e86f0
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This code is part of OpenFE and is licensed under the MIT license. | ||
# For details, see https://github.com/OpenFreeEnergy/openfe-gromacs | ||
|
||
import gufe | ||
import pytest | ||
from openff.units import unit as off_unit | ||
|
||
from openfe_gromacs.protocols.gromacs_md.md_methods import GromacsMDProtocol | ||
|
||
|
||
@pytest.mark.integration | ||
def test_protein_ligand_md(toluene_complex_system, tmp_path_factory): | ||
settings = GromacsMDProtocol.default_settings() | ||
settings.simulation_settings_em.nsteps = 10 | ||
settings.simulation_settings_nvt.nsteps = 10 | ||
settings.simulation_settings_npt.nsteps = 100 | ||
settings.simulation_settings_em.rcoulomb = 1.0 * off_unit.nanometer | ||
settings.simulation_settings_nvt.rcoulomb = 1.0 * off_unit.nanometer | ||
settings.simulation_settings_npt.rcoulomb = 1.0 * off_unit.nanometer | ||
protocol = GromacsMDProtocol( | ||
settings=settings, | ||
) | ||
|
||
dag = protocol.create( | ||
stateA=toluene_complex_system, | ||
stateB=toluene_complex_system, | ||
mapping=None, | ||
) | ||
|
||
shared_temp = tmp_path_factory.mktemp("shared") | ||
scratch_temp = tmp_path_factory.mktemp("scratch") | ||
gufe.protocols.execute_DAG( | ||
dag, | ||
shared_basedir=shared_temp, | ||
scratch_basedir=scratch_temp, | ||
keep_shared=False, | ||
n_retries=3, | ||
) |