Mercurial > repos > chemteam > gmx_fep
annotate alchemical_run/gmx_fep.sh @ 0:19d1d4c30402 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:39 -0500 |
parents | |
children | 453311042f29 |
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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
15 |
19d1d4c30402
"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` |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
17 do |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
26 done |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
27 mv *.mdp $MDP |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
28 |
19d1d4c30402
"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++ )) |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
30 do |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
31 LAMBDA=$i |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
32 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
34 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
35 mkdir Lambda_$LAMBDA |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
36 cd Lambda_$LAMBDA |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
37 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
38 # _______ ENERGY MINIMIZATION STEEP _______ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
39 |
19d1d4c30402
"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..." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
41 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
42 mkdir EM |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
43 cd EM |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
44 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
46 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
48 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
50 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
51 sleep 10 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
52 |
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 # _______ NVT EQUILIBRATION _______ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
55 |
19d1d4c30402
"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..." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
57 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
58 cd ../ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
59 mkdir NVT |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
60 cd NVT |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
61 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
63 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
65 |
19d1d4c30402
"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." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
67 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
68 sleep 10 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
69 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
70 # _______ NPT EQUILIBRATION _______ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
71 |
19d1d4c30402
"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..." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
73 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
74 cd ../ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
75 mkdir NPT |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
76 cd NPT |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
77 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
79 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
81 |
19d1d4c30402
"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." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
83 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
84 sleep 10 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
85 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
86 # ________ PRODUCTION MD ___________ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
87 |
19d1d4c30402
"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..." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
89 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
90 cd ../ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
91 mkdir Production_MD |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
92 cd Production_MD |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
93 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
95 |
19d1d4c30402
"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 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
97 |
19d1d4c30402
"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." |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
99 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
100 # End |
19d1d4c30402
"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" |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
102 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
103 cd $FREE_ENERGY |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
104 done |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
105 |
19d1d4c30402
"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/ |
19d1d4c30402
"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/ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
108 |
19d1d4c30402
"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/ |
19d1d4c30402
"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/ |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
111 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
112 exit; |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
113 |
19d1d4c30402
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/free_energy commit b73986b131478d51e119de635fea5bd752c23b99"
chemteam
parents:
diff
changeset
|
114 |