Skip to content

Commit

Permalink
Added an initial energies submit script for rsfe
Browse files Browse the repository at this point in the history
  • Loading branch information
loeflerm committed Aug 22, 2024
1 parent aac945b commit 143d192
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions transformato/bin/init_energies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
path=$1

cd ${path}
pwd
hostname


istep=lig_in_vacuum
python openmm_run.py -env vacuum -odcd ${istep}.dcd -sim False &> vacuum_init_energies_out.log

# test

istep=lig_in_waterbox
python openmm_run.py -env waterbox -odcd ${istep}.dcd -sim False &> waterbox_init_energies_out.log
10 changes: 10 additions & 0 deletions transformato/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,16 @@ def _copy_omm_files(self, intermediate_state_file_path: str):
shutil.copyfile(
omm_simulation_submit_script_source, omm_simulation_submit_script_target
)
omm_init_energies_submit_script_source = (
f"{self.configuration['bin_dir']}/init_energies.sh"
)
omm_init_energies_submit_script_target = (
f"{intermediate_state_file_path}/init_energies.sh"
)
shutil.copyfile(
omm_init_energies_submit_script_source, omm_init_energies_submit_script_target
)


elif self.configuration["simulation"]["free-energy-type"] == "rbfe":
# parse omm simulation paramter
Expand Down

0 comments on commit 143d192

Please sign in to comment.