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