bfee2 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bfee2 might be problematic. Click here for more details.
- BFEE2/__init__.py +0 -0
- BFEE2/commonTools/__init__.py +0 -0
- BFEE2/commonTools/commonSlots.py +48 -0
- BFEE2/commonTools/fileParser.py +327 -0
- BFEE2/commonTools/ploter.py +218 -0
- BFEE2/doc/Doc.pdf +0 -0
- BFEE2/doc/__init__.py +1 -0
- BFEE2/gui.py +2136 -0
- BFEE2/inputGenerator.py +2857 -0
- BFEE2/postTreatment.py +502 -0
- BFEE2/templates_gromacs/000.colvars.template +37 -0
- BFEE2/templates_gromacs/000.generate_tpr_sh.template +31 -0
- BFEE2/templates_gromacs/000.mdp.template +70 -0
- BFEE2/templates_gromacs/001.colvars.template +76 -0
- BFEE2/templates_gromacs/001.generate_tpr_sh.template +31 -0
- BFEE2/templates_gromacs/001.mdp.template +70 -0
- BFEE2/templates_gromacs/001.readme.template +1 -0
- BFEE2/templates_gromacs/002.colvars.template +101 -0
- BFEE2/templates_gromacs/002.generate_tpr_sh.template +31 -0
- BFEE2/templates_gromacs/002.mdp.template +70 -0
- BFEE2/templates_gromacs/003.colvars.template +125 -0
- BFEE2/templates_gromacs/003.generate_tpr_sh.template +36 -0
- BFEE2/templates_gromacs/003.mdp.template +70 -0
- BFEE2/templates_gromacs/004.colvars.template +148 -0
- BFEE2/templates_gromacs/004.generate_tpr_sh.template +37 -0
- BFEE2/templates_gromacs/004.mdp.template +70 -0
- BFEE2/templates_gromacs/005.colvars.template +170 -0
- BFEE2/templates_gromacs/005.generate_tpr_sh.template +38 -0
- BFEE2/templates_gromacs/005.mdp.template +70 -0
- BFEE2/templates_gromacs/006.colvars.template +192 -0
- BFEE2/templates_gromacs/006.generate_tpr_sh.template +39 -0
- BFEE2/templates_gromacs/006.mdp.template +70 -0
- BFEE2/templates_gromacs/007.colvars.template +210 -0
- BFEE2/templates_gromacs/007.generate_tpr_sh.template +40 -0
- BFEE2/templates_gromacs/007.mdp.template +69 -0
- BFEE2/templates_gromacs/007_eq.colvars.template +169 -0
- BFEE2/templates_gromacs/007_eq.generate_tpr_sh.template +64 -0
- BFEE2/templates_gromacs/007_min.mdp.template +58 -0
- BFEE2/templates_gromacs/008.colvars.template +42 -0
- BFEE2/templates_gromacs/008.generate_tpr_sh.template +31 -0
- BFEE2/templates_gromacs/008.mdp.template +70 -0
- BFEE2/templates_gromacs/008_eq.generate_tpr_sh.template +31 -0
- BFEE2/templates_gromacs/BFEEGromacs.py +1244 -0
- BFEE2/templates_gromacs/__init__.py +0 -0
- BFEE2/templates_gromacs/find_min_max.awk +27 -0
- BFEE2/templates_namd/__init__.py +0 -0
- BFEE2/templates_namd/configTemplate.py +1094 -0
- BFEE2/templates_namd/fep.tcl +299 -0
- BFEE2/templates_namd/scriptTemplate.py +149 -0
- BFEE2/templates_namd/solvate.tcl +9 -0
- BFEE2/templates_namd/solvate_mem.tcl +9 -0
- BFEE2/templates_namd/updateCenters.py +311 -0
- BFEE2/templates_readme/Readme_Gromacs_Geometrical.txt +25 -0
- BFEE2/templates_readme/Readme_NAMD_Alchemical.txt +20 -0
- BFEE2/templates_readme/Readme_NAMD_Geometrical.txt +34 -0
- BFEE2/templates_readme/__init__.py +1 -0
- BFEE2/third_party/__init__.py +0 -0
- BFEE2/third_party/py_bar.py +335 -0
- BFEE2/version.py +2 -0
- bfee2-2.5.0.data/scripts/BFEE2Gui.py +18 -0
- bfee2-2.5.0.dist-info/LICENSE +677 -0
- bfee2-2.5.0.dist-info/METADATA +76 -0
- bfee2-2.5.0.dist-info/RECORD +65 -0
- bfee2-2.5.0.dist-info/WHEEL +5 -0
- bfee2-2.5.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
colvarsTrajFrequency 500
|
|
2
|
+
colvarsRestartFrequency 50000
|
|
3
|
+
indexFile colvars.ndx
|
|
4
|
+
|
|
5
|
+
colvar {
|
|
6
|
+
name RMSD
|
|
7
|
+
rmsd {
|
|
8
|
+
atoms {
|
|
9
|
+
indexGroup $ligand_selection
|
|
10
|
+
}
|
|
11
|
+
refPositionsfile reference.xyz
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
colvar {
|
|
16
|
+
name eulerTheta
|
|
17
|
+
eulerTheta {
|
|
18
|
+
atoms {
|
|
19
|
+
indexGroup $ligand_selection
|
|
20
|
+
centerToReference on
|
|
21
|
+
rotateToReference on
|
|
22
|
+
centerToOrigin on
|
|
23
|
+
enableFitGradients on
|
|
24
|
+
fittingGroup {
|
|
25
|
+
indexGroup $protein_selection
|
|
26
|
+
}
|
|
27
|
+
refPositionsfile reference.xyz
|
|
28
|
+
}
|
|
29
|
+
refPositionsfile reference.xyz
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
colvar {
|
|
34
|
+
name eulerPhi
|
|
35
|
+
eulerPhi {
|
|
36
|
+
atoms {
|
|
37
|
+
indexGroup $ligand_selection
|
|
38
|
+
centerToReference on
|
|
39
|
+
rotateToReference on
|
|
40
|
+
centerToOrigin on
|
|
41
|
+
enableFitGradients on
|
|
42
|
+
fittingGroup {
|
|
43
|
+
indexGroup $protein_selection
|
|
44
|
+
}
|
|
45
|
+
refPositionsfile reference.xyz
|
|
46
|
+
}
|
|
47
|
+
refPositionsfile reference.xyz
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
colvar {
|
|
52
|
+
name eulerPsi
|
|
53
|
+
eulerPsi {
|
|
54
|
+
atoms {
|
|
55
|
+
indexGroup $ligand_selection
|
|
56
|
+
centerToReference on
|
|
57
|
+
rotateToReference on
|
|
58
|
+
centerToOrigin on
|
|
59
|
+
enableFitGradients on
|
|
60
|
+
fittingGroup {
|
|
61
|
+
indexGroup $protein_selection
|
|
62
|
+
}
|
|
63
|
+
refPositionsfile reference.xyz
|
|
64
|
+
}
|
|
65
|
+
refPositionsfile reference.xyz
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
colvar {
|
|
70
|
+
name polarTheta
|
|
71
|
+
polarTheta {
|
|
72
|
+
atoms {
|
|
73
|
+
indexGroup $ligand_selection
|
|
74
|
+
centerToReference on
|
|
75
|
+
rotateToReference on
|
|
76
|
+
centerToOrigin on
|
|
77
|
+
fittingGroup {
|
|
78
|
+
indexGroup $protein_selection
|
|
79
|
+
}
|
|
80
|
+
refPositionsfile reference.xyz
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
colvar {
|
|
86
|
+
name polarPhi
|
|
87
|
+
polarPhi {
|
|
88
|
+
atoms {
|
|
89
|
+
indexGroup $ligand_selection
|
|
90
|
+
centerToReference on
|
|
91
|
+
rotateToReference on
|
|
92
|
+
centerToOrigin on
|
|
93
|
+
fittingGroup {
|
|
94
|
+
indexGroup $protein_selection
|
|
95
|
+
}
|
|
96
|
+
refPositionsFile reference.xyz
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
harmonic {
|
|
102
|
+
colvars polarPhi
|
|
103
|
+
forceConstant 0.4184
|
|
104
|
+
centers 006_pmf_argmin
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
harmonic {
|
|
108
|
+
colvars polarTheta
|
|
109
|
+
forceConstant 0.4184
|
|
110
|
+
centers 005_pmf_argmin
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
harmonic {
|
|
114
|
+
colvars eulerPsi
|
|
115
|
+
forceConstant 0.4184
|
|
116
|
+
centers 004_pmf_argmin
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
harmonic {
|
|
120
|
+
colvars eulerPhi
|
|
121
|
+
forceConstant 0.4184
|
|
122
|
+
centers 003_pmf_argmin
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
harmonic {
|
|
126
|
+
colvars eulerTheta
|
|
127
|
+
forceConstant 0.4184
|
|
128
|
+
centers 002_pmf_argmin
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
harmonic {
|
|
132
|
+
colvars RMSD
|
|
133
|
+
forceConstant 4184
|
|
134
|
+
centers 0
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
colvar {
|
|
138
|
+
name translation
|
|
139
|
+
distance {
|
|
140
|
+
group1 {
|
|
141
|
+
indexGroup $protein_selection
|
|
142
|
+
}
|
|
143
|
+
group2 {
|
|
144
|
+
dummyAtom $protein_center
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
harmonic {
|
|
150
|
+
colvars translation
|
|
151
|
+
centers 0.0
|
|
152
|
+
forceConstant 4184
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
colvar {
|
|
156
|
+
name orientation
|
|
157
|
+
orientation {
|
|
158
|
+
atoms {
|
|
159
|
+
indexGroup $protein_selection
|
|
160
|
+
}
|
|
161
|
+
refPositionsfile reference.xyz
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
harmonic {
|
|
166
|
+
colvars orientation
|
|
167
|
+
centers (1.0, 0.0, 0.0, 0.0)
|
|
168
|
+
forceConstant 836.8
|
|
169
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# define the binary of gromacs
|
|
4
|
+
if which gmx_mpi &> /dev/null; then
|
|
5
|
+
GMX_BIN=$(which gmx_mpi)
|
|
6
|
+
else which gmx &> /dev/null;
|
|
7
|
+
GMX_BIN=$(which gmx)
|
|
8
|
+
fi
|
|
9
|
+
echo "Will use the gromacs executable binary at $GMX_BIN"
|
|
10
|
+
|
|
11
|
+
# input (.gro, .top and .mdp) and output (.tpr)
|
|
12
|
+
# MDP_FILE: running parameters
|
|
13
|
+
# GRO_FILE: atom positions
|
|
14
|
+
# TOP_FILE: topology
|
|
15
|
+
MDP_FILE=$MDP_FILE_TEMPLATE
|
|
16
|
+
GRO_FILE=$GRO_FILE_TEMPLATE
|
|
17
|
+
TOP_FILE=$TOP_FILE_TEMPLATE
|
|
18
|
+
|
|
19
|
+
# enlarge the pbc box
|
|
20
|
+
echo "Enlarge the box to $NEW_BOX_X_TEMPLATE $NEW_BOX_Y_TEMPLATE $NEW_BOX_Z_TEMPLATE"
|
|
21
|
+
$GMX_BIN editconf -f $GRO_FILE -box $NEW_BOX_X_TEMPLATE $NEW_BOX_Y_TEMPLATE $NEW_BOX_Z_TEMPLATE -o $BOX_MODIFIED_GRO_TEMPLATE
|
|
22
|
+
# add more solvents to the new box
|
|
23
|
+
NEW_TOP_FILE=$MODIFIED_TOP_TEMPLATE
|
|
24
|
+
NEW_GRO_FILE=$MODIFIED_GRO_TEMPLATE
|
|
25
|
+
cp -f $TOP_FILE $NEW_TOP_FILE
|
|
26
|
+
echo "Add more solvent molecules to fill the box..."
|
|
27
|
+
$GMX_BIN solvate -cp $BOX_MODIFIED_GRO_TEMPLATE -cs solvent.gro -p $NEW_TOP_FILE -box $NEW_BOX_X_TEMPLATE $NEW_BOX_Y_TEMPLATE $NEW_BOX_Z_TEMPLATE -o $NEW_GRO_FILE
|
|
28
|
+
|
|
29
|
+
# generate the tpr file for minimization
|
|
30
|
+
OUTPUT_BASENAME=$(basename "$(pwd)")
|
|
31
|
+
MIN_MDP_FILE=$MIN_MDP_FILE_TEMPLATE
|
|
32
|
+
MIN_TPR_FILE="$OUTPUT_BASENAME.min.tpr"
|
|
33
|
+
NEW_MIN_MDP_FILE="$OUTPUT_BASENAME.min.new.mdp"
|
|
34
|
+
echo "Making gromacs tpr file ($MIN_TPR_FILE) for minimization..."
|
|
35
|
+
$GMX_BIN grompp -f $MIN_MDP_FILE -c $NEW_GRO_FILE -p $NEW_TOP_FILE -o $MIN_TPR_FILE -po $NEW_MIN_MDP_FILE
|
|
36
|
+
|
|
37
|
+
# run minimization
|
|
38
|
+
mkdir -p output_minimization
|
|
39
|
+
DEFAULT_OUTPUT_FILENAME="output_minimization/$OUTPUT_BASENAME.min.out"
|
|
40
|
+
$GMX_BIN mdrun -s $MIN_TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME
|
|
41
|
+
|
|
42
|
+
# generate the tpr file
|
|
43
|
+
OUTPUT_BASENAME=$(basename "$(pwd)")
|
|
44
|
+
TPR_FILE="$OUTPUT_BASENAME.eq.tpr"
|
|
45
|
+
NEW_MDP_FILE="$OUTPUT_BASENAME.mdp"
|
|
46
|
+
NEW_GRO_FILE="$DEFAULT_OUTPUT_FILENAME.gro"
|
|
47
|
+
echo "Making gromacs tpr file ($TPR_FILE)..."
|
|
48
|
+
$GMX_BIN grompp -f $MDP_FILE -c $NEW_GRO_FILE -p $NEW_TOP_FILE -o $TPR_FILE -po $NEW_MDP_FILE
|
|
49
|
+
|
|
50
|
+
# modify the colvars input file using the PMF minima in previous stages
|
|
51
|
+
ARGMIN_002=$(awk -f ./find_min_max.awk ../$BASENAME_002/output/$BASENAME_002.out.abf1.czar.pmf)
|
|
52
|
+
ARGMIN_003=$(awk -f ./find_min_max.awk ../$BASENAME_003/output/$BASENAME_003.out.abf1.czar.pmf)
|
|
53
|
+
ARGMIN_004=$(awk -f ./find_min_max.awk ../$BASENAME_004/output/$BASENAME_004.out.abf1.czar.pmf)
|
|
54
|
+
ARGMIN_005=$(awk -f ./find_min_max.awk ../$BASENAME_005/output/$BASENAME_005.out.abf1.czar.pmf)
|
|
55
|
+
ARGMIN_006=$(awk -f ./find_min_max.awk ../$BASENAME_006/output/$BASENAME_006.out.abf1.czar.pmf)
|
|
56
|
+
sed -i.orig "s/002_pmf_argmin/$ARGMIN_002/g; s/003_pmf_argmin/$ARGMIN_003/g; s/004_pmf_argmin/$ARGMIN_004/g; s/005_pmf_argmin/$ARGMIN_005/g; s/006_pmf_argmin/$ARGMIN_006/g" $COLVARS_INPUT_TEMPLATE
|
|
57
|
+
rm -f $COLVARS_INPUT_TEMPLATE.orig
|
|
58
|
+
|
|
59
|
+
# run the PMF calculation
|
|
60
|
+
mkdir -p output
|
|
61
|
+
DEFAULT_OUTPUT_FILENAME="output/${OUTPUT_BASENAME}_eq.out"
|
|
62
|
+
# $GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME -colvars colvar.dat
|
|
63
|
+
echo "You can now run gromacs by the following example:"
|
|
64
|
+
echo "$GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME -colvars $COLVARS_INPUT_TEMPLATE"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
;minimization
|
|
2
|
+
|
|
3
|
+
;Run control
|
|
4
|
+
integrator = steep
|
|
5
|
+
dt = $dt
|
|
6
|
+
tinit = 0
|
|
7
|
+
nsteps = $nsteps
|
|
8
|
+
comm-mode = Linear
|
|
9
|
+
nstcomm = 10
|
|
10
|
+
|
|
11
|
+
;Langevin dynamics
|
|
12
|
+
bd-fric = 0
|
|
13
|
+
ld-seed = -1
|
|
14
|
+
|
|
15
|
+
;Energy minimization
|
|
16
|
+
emtol = 10
|
|
17
|
+
emstep = 0.01
|
|
18
|
+
|
|
19
|
+
;Output control
|
|
20
|
+
nstxout = 100
|
|
21
|
+
nstvout = 100
|
|
22
|
+
nstfout = 100
|
|
23
|
+
nstlog = 100
|
|
24
|
+
nstcalcenergy = 10
|
|
25
|
+
nstenergy = 100
|
|
26
|
+
|
|
27
|
+
;Neighbor searching
|
|
28
|
+
cutoff-scheme = Verlet
|
|
29
|
+
ns-type = grid
|
|
30
|
+
pbc = xyz
|
|
31
|
+
periodic-molecules = no
|
|
32
|
+
|
|
33
|
+
;Electrostatics
|
|
34
|
+
coulombtype = PME
|
|
35
|
+
coulomb-modifier = Potential-shift-Verlet
|
|
36
|
+
rcoulomb = 1.2
|
|
37
|
+
|
|
38
|
+
;VdW
|
|
39
|
+
vdwtype = Cut-off
|
|
40
|
+
vdw-modifier = force-switch
|
|
41
|
+
rvdw = 1.2
|
|
42
|
+
rvdw-switch = 1.0
|
|
43
|
+
DispCorr = no
|
|
44
|
+
|
|
45
|
+
;Bonds (for minimization)
|
|
46
|
+
constraint-algorithm = LINCS
|
|
47
|
+
constraints = none
|
|
48
|
+
continuation = no
|
|
49
|
+
morse = no
|
|
50
|
+
|
|
51
|
+
;Implicit solvent
|
|
52
|
+
implicit-solvent = no
|
|
53
|
+
|
|
54
|
+
;Pressure coupling
|
|
55
|
+
pcoupl = no
|
|
56
|
+
|
|
57
|
+
;Velocity generation
|
|
58
|
+
gen-vel = yes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
colvarsTrajFrequency 500
|
|
2
|
+
colvarsRestartFrequency 50000
|
|
3
|
+
indexFile colvars_ligand_only.ndx
|
|
4
|
+
|
|
5
|
+
colvar {
|
|
6
|
+
name RMSD
|
|
7
|
+
width $rmsd_bin_width
|
|
8
|
+
lowerboundary $rmsd_lower_boundary
|
|
9
|
+
upperboundary $rmsd_upper_boundary
|
|
10
|
+
subtractAppliedForce on
|
|
11
|
+
extendedLagrangian on
|
|
12
|
+
extendedFluctuation $rmsd_bin_width
|
|
13
|
+
rmsd {
|
|
14
|
+
atoms {
|
|
15
|
+
indexGroup $ligand_selection
|
|
16
|
+
}
|
|
17
|
+
refPositionsfile reference_ligand_only.xyz
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
harmonicWalls {
|
|
22
|
+
colvars RMSD
|
|
23
|
+
lowerWalls $rmsd_lower_boundary
|
|
24
|
+
upperWalls $rmsd_upper_boundary
|
|
25
|
+
lowerWallConstant $rmsd_wall_constant
|
|
26
|
+
upperWallConstant $rmsd_wall_constant
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
abf {
|
|
30
|
+
colvars RMSD
|
|
31
|
+
FullSamples 10000
|
|
32
|
+
historyfreq 50000
|
|
33
|
+
writeCZARwindowFile
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
metadynamics {
|
|
37
|
+
colvars RMSD
|
|
38
|
+
hillWidth 3.0
|
|
39
|
+
hillWeight 0.2092
|
|
40
|
+
wellTempered on
|
|
41
|
+
biasTemperature 4000
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# define the binary of gromacs
|
|
4
|
+
if which gmx_mpi &> /dev/null; then
|
|
5
|
+
GMX_BIN=$(which gmx_mpi)
|
|
6
|
+
else which gmx &> /dev/null;
|
|
7
|
+
GMX_BIN=$(which gmx)
|
|
8
|
+
fi
|
|
9
|
+
echo "Will use the gromacs executable binary at $GMX_BIN"
|
|
10
|
+
|
|
11
|
+
# input (.gro, .top and .mdp) and output (.tpr)
|
|
12
|
+
# MDP_FILE: running parameters
|
|
13
|
+
# GRO_FILE: atom positions
|
|
14
|
+
# TOP_FILE: topology
|
|
15
|
+
MDP_FILE=$MDP_FILE_TEMPLATE
|
|
16
|
+
GRO_FILE=$GRO_FILE_TEMPLATE
|
|
17
|
+
TOP_FILE=$TOP_FILE_TEMPLATE
|
|
18
|
+
|
|
19
|
+
# generate the tpr file
|
|
20
|
+
OUTPUT_BASENAME=$(basename "$(pwd)")
|
|
21
|
+
TPR_FILE="$OUTPUT_BASENAME.tpr"
|
|
22
|
+
NEW_MDP_FILE="$OUTPUT_BASENAME.mdp"
|
|
23
|
+
echo "Making gromacs tpr file ($TPR_FILE)..."
|
|
24
|
+
$GMX_BIN grompp -f $MDP_FILE -c $GRO_FILE -p $TOP_FILE -o $TPR_FILE -po $NEW_MDP_FILE
|
|
25
|
+
|
|
26
|
+
# run the PMF calculation
|
|
27
|
+
mkdir -p output
|
|
28
|
+
DEFAULT_OUTPUT_FILENAME="output/$OUTPUT_BASENAME.out"
|
|
29
|
+
# $GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME -colvars colvar.dat
|
|
30
|
+
echo "You can now run gromacs by the following example:"
|
|
31
|
+
echo "$GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME -colvars $COLVARS_INPUT_TEMPLATE"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
;equilibration of p41-abl
|
|
2
|
+
|
|
3
|
+
;Run control
|
|
4
|
+
integrator = md
|
|
5
|
+
dt = $dt
|
|
6
|
+
tinit = 0
|
|
7
|
+
nsteps = $nsteps
|
|
8
|
+
comm-mode = Linear
|
|
9
|
+
nstcomm = 1000
|
|
10
|
+
|
|
11
|
+
;Langevin dynamics
|
|
12
|
+
bd-fric = 0
|
|
13
|
+
ld-seed = -1
|
|
14
|
+
|
|
15
|
+
;Energy minimization
|
|
16
|
+
;emtol = 10
|
|
17
|
+
;emstep = 0.01
|
|
18
|
+
|
|
19
|
+
;Output control
|
|
20
|
+
nstxout = 5000
|
|
21
|
+
nstvout = 5000
|
|
22
|
+
nstfout = 5000
|
|
23
|
+
nstlog = 5000
|
|
24
|
+
nstcalcenergy = 1000
|
|
25
|
+
nstenergy = 5000
|
|
26
|
+
|
|
27
|
+
;Neighbor searching
|
|
28
|
+
cutoff-scheme = Verlet
|
|
29
|
+
ns-type = grid
|
|
30
|
+
pbc = xyz
|
|
31
|
+
periodic-molecules = no
|
|
32
|
+
|
|
33
|
+
;Electrostatics
|
|
34
|
+
coulombtype = PME
|
|
35
|
+
coulomb-modifier = Potential-shift-Verlet
|
|
36
|
+
rcoulomb = 1.2
|
|
37
|
+
|
|
38
|
+
;VdW
|
|
39
|
+
vdwtype = Cut-off
|
|
40
|
+
vdw-modifier = force-switch
|
|
41
|
+
rvdw = 1.2
|
|
42
|
+
rvdw-switch = 1.0
|
|
43
|
+
DispCorr = no
|
|
44
|
+
|
|
45
|
+
;Bonds (for minimization)
|
|
46
|
+
constraint-algorithm = LINCS
|
|
47
|
+
constraints = h-bonds
|
|
48
|
+
continuation = yes
|
|
49
|
+
morse = no
|
|
50
|
+
|
|
51
|
+
;Implicit solvent
|
|
52
|
+
implicit-solvent = no
|
|
53
|
+
|
|
54
|
+
;Pressure coupling
|
|
55
|
+
;Pressure coupling
|
|
56
|
+
pcoupl = C-rescale
|
|
57
|
+
pcoupltype = Isotropic
|
|
58
|
+
nstpcouple = -1
|
|
59
|
+
tau-p = 2
|
|
60
|
+
compressibility = 4.5e-5
|
|
61
|
+
ref-p = $pressure
|
|
62
|
+
|
|
63
|
+
;Temperature coupling
|
|
64
|
+
tcoupl = v-rescale
|
|
65
|
+
tc-grps = System
|
|
66
|
+
tau_t = 0.1
|
|
67
|
+
ref_t = $temperature
|
|
68
|
+
|
|
69
|
+
;Velocity generation
|
|
70
|
+
gen-vel = no
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# define the binary of gromacs
|
|
4
|
+
if which gmx_mpi &> /dev/null; then
|
|
5
|
+
GMX_BIN=$(which gmx_mpi)
|
|
6
|
+
else which gmx &> /dev/null;
|
|
7
|
+
GMX_BIN=$(which gmx)
|
|
8
|
+
fi
|
|
9
|
+
echo "Will use the gromacs executable binary at $GMX_BIN"
|
|
10
|
+
|
|
11
|
+
# input (.gro, .top and .mdp) and output (.tpr)
|
|
12
|
+
# MDP_FILE: running parameters
|
|
13
|
+
# GRO_FILE: atom positions
|
|
14
|
+
# TOP_FILE: topology
|
|
15
|
+
MDP_FILE=$MDP_FILE_TEMPLATE
|
|
16
|
+
GRO_FILE=$GRO_FILE_TEMPLATE
|
|
17
|
+
TOP_FILE=$TOP_FILE_TEMPLATE
|
|
18
|
+
|
|
19
|
+
# generate the tpr file
|
|
20
|
+
OUTPUT_BASENAME=$(basename "$(pwd)")
|
|
21
|
+
TPR_FILE="$OUTPUT_BASENAME.eq.tpr"
|
|
22
|
+
NEW_MDP_FILE="$OUTPUT_BASENAME.mdp"
|
|
23
|
+
echo "Making gromacs tpr file ($TPR_FILE)..."
|
|
24
|
+
$GMX_BIN grompp -f $MDP_FILE -c $GRO_FILE -p $TOP_FILE -o $TPR_FILE -po $NEW_MDP_FILE
|
|
25
|
+
|
|
26
|
+
# run the PMF calculation
|
|
27
|
+
mkdir -p output
|
|
28
|
+
DEFAULT_OUTPUT_FILENAME="output/${OUTPUT_BASENAME}_eq.out"
|
|
29
|
+
# $GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME
|
|
30
|
+
echo "You can now run gromacs by the following example:"
|
|
31
|
+
echo "$GMX_BIN mdrun -ntmpi 1 -ntomp 4 -nb gpu -pme gpu -gpu_id 0 -s $TPR_FILE -deffnm $DEFAULT_OUTPUT_FILENAME"
|