annotate alchemical_run/gmx_fep.sh @ 2:c1bcdba99bb3 draft default tip

"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit eefe89bfcd6c3e98f4e774e508ad0659dcc2f65c"
author chemteam
date Sun, 01 Dec 2019 09:47:35 -0500
parents 453311042f29
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
1 #!/bin/bash
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
2
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
3 # _________ read inputs from the galaxy wrapper and define some variables ____________
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
4
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
5 lam=$1
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
6 iter=$((lam+1))
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
7
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
8 mkdir MDP
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
9 mkdir data
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
10 mkdir traj
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
11
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
12 FREE_ENERGY=`pwd`
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
13 MDP=$FREE_ENERGY/MDP
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
14
1
453311042f29 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit 4c75f8d26505d221d4144f4ae7d2fb7698fbe4ab"
chemteam
parents: 0
diff changeset
15 set -e
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
16
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
17 for i in `seq 0 $lam`
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
18 do
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
19 cp em_steep.mdp em_steep_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
20 sed -i "s/%L%/$i/" em_steep_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
21 cp nvt.mdp nvt_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
22 sed -i "s/%L%/$i/" nvt_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
23 cp npt.mdp npt_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
24 sed -i "s/%L%/$i/" npt_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
25 cp md.mdp md_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
26 sed -i "s/%L%/$i/" md_$i.mdp
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
27 done
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
28 mv *.mdp $MDP
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
29
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
30 for (( i=0; i<$iter; i++ ))
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
31 do
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
32 LAMBDA=$i
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
33
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
34 # A new directory will be created for each value of lambda
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
35
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
36 mkdir Lambda_$LAMBDA
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
37 cd Lambda_$LAMBDA
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
38
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
39 # _______ ENERGY MINIMIZATION STEEP _______
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
40
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
41 echo "Starting minimization for lambda = $LAMBDA..."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
42
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
43 mkdir EM
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
44 cd EM
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
45
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
46 # Iterative calls to grompp and mdrun to run the simulations
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
47
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
48 gmx grompp -f $MDP/em_steep_$LAMBDA.mdp -c $FREE_ENERGY/morph.gro -p $FREE_ENERGY/morph.top -o min$LAMBDA.tpr
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
49
2
c1bcdba99bb3 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit eefe89bfcd6c3e98f4e774e508ad0659dcc2f65c"
chemteam
parents: 1
diff changeset
50 gmx mdrun -nt "${GALAXY_SLOTS:-4}" -deffnm min$LAMBDA
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
51
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
52 sleep 10
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
53
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
54
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
55 # _______ NVT EQUILIBRATION _______
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
56
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
57 echo "Starting constant volume equilibration..."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
58
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
59 cd ../
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
60 mkdir NVT
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
61 cd NVT
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
62
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
63 gmx grompp -f $MDP/nvt_$LAMBDA.mdp -c ../EM/min$LAMBDA.gro -p $FREE_ENERGY/morph.top -o nvt$LAMBDA.tpr
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
64
2
c1bcdba99bb3 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit eefe89bfcd6c3e98f4e774e508ad0659dcc2f65c"
chemteam
parents: 1
diff changeset
65 gmx mdrun -nt "${GALAXY_SLOTS:-4}" -deffnm nvt$LAMBDA
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
66
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
67 echo "Constant volume equilibration complete."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
68
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
69 sleep 10
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
70
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
71 # _______ NPT EQUILIBRATION _______
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
72
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
73 echo "Starting constant pressure equilibration..."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
74
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
75 cd ../
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
76 mkdir NPT
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
77 cd NPT
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
78
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
79 gmx grompp -f $MDP/npt_$LAMBDA.mdp -c ../NVT/nvt$LAMBDA.gro -p $FREE_ENERGY/morph.top -t ../NVT/nvt$LAMBDA.cpt -o npt$LAMBDA.tpr
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
80
2
c1bcdba99bb3 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit eefe89bfcd6c3e98f4e774e508ad0659dcc2f65c"
chemteam
parents: 1
diff changeset
81 gmx mdrun -nt "${GALAXY_SLOTS:-4}" -deffnm npt$LAMBDA
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
82
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
83 echo "Constant pressure equilibration complete."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
84
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
85 sleep 10
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
86
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
87 # ________ PRODUCTION MD ___________
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
88
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
89 echo "Starting production MD simulation..."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
90
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
91 cd ../
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
92 mkdir Production_MD
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
93 cd Production_MD
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
94
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
95 gmx grompp -f $MDP/md_$LAMBDA.mdp -c ../NPT/npt$LAMBDA.gro -p $FREE_ENERGY/morph.top -t ../NPT/npt$LAMBDA.cpt -o md$LAMBDA.tpr
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
96
2
c1bcdba99bb3 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit eefe89bfcd6c3e98f4e774e508ad0659dcc2f65c"
chemteam
parents: 1
diff changeset
97 gmx mdrun -nt "${GALAXY_SLOTS:-4}" -deffnm md$LAMBDA
0
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
98
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
99 echo "Production MD complete."
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
100
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
101 # End
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
102 echo "Ending. Job completed for lambda = $LAMBDA"
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
103
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
104 cd $FREE_ENERGY
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
105 done
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
106
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
107 cp Lambda_*/Production_MD/*.xvg data/
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
108 tar cf data.tar data/
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
109
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
110 cp Lambda_*/Production_MD/*.trr traj/
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
111 tar cf traj.tar traj/
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
112
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
113 exit;
19d1d4c30402 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff changeset
114