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