forked from fhh2626/BFEE2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path004_trypsin_benzamidine_alchemical.py
65 lines (57 loc) · 1.9 KB
/
004_trypsin_benzamidine_alchemical.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import sys
sys.path.append("..")
import os, shutil
import BFEE2.inputGenerator as inputGenerator
import commonTools
import userDefinedPath
targetFiles = [
r'000_eq/000.1_eq.conf',
r'000_eq/000.2_eq_ligandOnly.conf',
r'000_eq/colvars.in',
r'000_eq/colvars_ligandOnly.in',
r'001_MoleculeBound/001.1_fep_backward.conf',
r'001_MoleculeBound/001.2_fep_forward.conf',
r'001_MoleculeBound/colvars.in',
r'002_RestraintBound/002.1_ti_backward.conf',
r'002_RestraintBound/002.2_ti_forward.conf',
r'002_RestraintBound/colvars_backward.in',
r'002_RestraintBound/colvars_forward.in',
r'003_MoleculeUnbound/003.1_fep_backward.conf',
r'003_MoleculeUnbound/003.2_fep_forward.conf',
r'003_MoleculeUnbound/colvars.in',
r'004_RestraintUnbound/004.1_ti_backward.conf',
r'004_RestraintUnbound/004.2_ti_forward.conf',
r'004_RestraintUnbound/colvars_backward.in',
r'004_RestraintUnbound/colvars_forward.in',
r'002.3.1_removeProtein.cpptraj',
r'complex.ndx',
r'complex.pdb',
r'complex.parm7',
r'complex.xyz',
r'fep.pdb',
r'fep.tcl',
r'fep_ligandOnly.pdb',
r'ligandOnly.ndx',
r'ligandOnly.pdb',
r'ligandOnly.xyz',
]
refPath = r'exampleOutputs/004_trypsin_benzamidine_alchemical'
targetPath = r'test_output/004_trypsin_benzamidine_alchemical'
if os.path.exists(targetPath):
shutil.rmtree(targetPath)
os.makedirs(targetPath)
iGenerator = inputGenerator.inputGenerator()
iGenerator.generateNAMDAlchemicalFiles(
userDefinedPath.UNITTESTPATH + '/' + targetPath,
userDefinedPath.UNITTESTPATH + '/' + r'exampleInputs/trypsin_benzamidine/small_box.parm7',
userDefinedPath.UNITTESTPATH + '/' + r'exampleInputs/trypsin_benzamidine/small_box.rst7',
'amber',
[],
300.0,
'protein',
'resname BAMI',
[100,100,50,50],
pinDownPro = False,
useOldCv = False,
)
commonTools.checkAllFiles(refPath, targetPath, targetFiles)