forked from raimis/AToM-OpenMM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abfe_explicit.py
47 lines (36 loc) · 1004 Bytes
/
abfe_explicit.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! python
from __future__ import print_function
from __future__ import division
import sys
import time
import math
import random
import logging
import signal
import shutil
import random
from simtk import openmm as mm
from simtk.openmm.app import *
from simtk.openmm import *
from simtk.unit import *
from datetime import datetime
from openmm_async_re import openmm_job_AmberABFE
if __name__ == '__main__':
# Parse arguments:
usage = "%prog <ConfigFile>"
if len(sys.argv) != 2:
print("Please specify ONE input file")
sys.exit(1)
commandFile = sys.argv[1]
print("")
print("=======================================")
print("AToM ABFE Asynchronous Replica Exchange")
print("=======================================")
print("")
print("Started at: " + str(time.asctime()))
print("Input file:", commandFile)
print("")
sys.stdout.flush()
rx = openmm_job_AmberABFE(commandFile, options=None)
rx.setupJob()
rx.scheduleJobs()