comparison npt.xml @ 0:69ff679edefd draft

planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/gromacs commit 177cab098ac548bfdecba9d9f04614aec5f6c618
author chemteam
date Thu, 04 Oct 2018 17:38:27 -0400
parents
children 5b01e6df25a0
comparison
equal deleted inserted replaced
-1:000000000000 0:69ff679edefd
1 <tool id="gmx_npt" name="GROMACS NPT equilibration" version="@VERSION@">
2 <description>- constant-temperature and -pressure equilibration of a system</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6
7 <expand macro="requirements" />
8
9 <command detect_errors="exit_code"><![CDATA[
10 #if $mdp.mdpfile == "custom":
11 ln -s '$mdp.mdp_input' ./npt.mdp &&
12 #end if
13 #if $mdp.mdpfile == "default":
14 ln -s '$npt' ./npt.mdp &&
15 #end if
16
17 ln -s '$gro_input' ./nvt.gro &&
18 ln -s '$cpt_input' ./nvt.cpt &&
19 ln -s '$top_input' ./top_input.top &&
20 ln -s '$itp_input' ./posres.itp &&
21
22 gmx grompp -f ./npt.mdp -c ./nvt.gro -r ./nvt.gro -t ./nvt.cpt -p ./top_input.top -o npt.tpr &>> verbose.txt &&
23 gmx mdrun -deffnm npt &>> verbose.txt
24
25 #if $str == 'pdb' or $str == 'both'
26 && gmx editconf -f npt.gro -o npt.pdb &>> verbose.txt
27 #end if
28
29 ]]></command>
30 <configfiles>
31 <!-- .mdp file for the gromacs simulation -->
32 <configfile name="npt">
33 #if $mdp.mdpfile == 'default':
34 title = NPT equilibration
35 define = -DPOSRES ; position restrain the protein
36 ; Run parameters
37 integrator = $mdp.integrator ; leap-frog integrator
38 nsteps = $mdp.md_steps ; 2 * 50000 = 100 ps
39 dt = $mdp.step_length ; 2 fs
40 ; Output control
41 nstxout = $mdp.write_freq ; save coordinates every 1.0 ps
42 nstvout = $mdp.write_freq ; save velocities every 1.0 ps
43 nstenergy = $mdp.write_freq ; save energies every 1.0 ps
44 nstlog = $mdp.write_freq ; update log file every 1.0 ps
45 nstxout-compressed = $mdp.write_freq ; save compressed coordinates every 10.0 ps
46
47 ; Bond parameters
48 continuation = yes ; Restarting after NVT
49 constraint_algorithm = lincs ; holonomic constraints
50 constraints = $mdp.constraints ; all bonds (even heavy atom-H bonds) constrained
51 lincs_iter = 1 ; accuracy of LINCS
52 lincs_order = 4 ; also related to accuracy
53 ; Neighborsearching
54 cutoff-scheme = $mdp.cutoffscheme
55 ns_type = grid ; search neighboring grid cells
56 nstlist = 10 ; 20 fs, largely irrelevant with Verlet scheme
57 rcoulomb = $mdp.rcoulomb ; Short-range electrostatic cut-off
58 rlist = $mdp.rlist ; Cut-off distance for the short-range neighbor list.
59 rvdw = $mdp.rvdw ; Short-range Van der Waals cut-off
60 ; Electrostatics
61 coulombtype = $mdp.coulombtype ; method for electrostatics calculations e.g. PME
62 pme_order = 4 ; cubic interpolation
63 fourierspacing = 0.16 ; grid spacing for FFT
64 ; Temperature coupling is on
65 tcoupl = V-rescale ; modified Berendsen thermostat
66 tc-grps = Protein Non-Protein ; two coupling groups - more accurate
67 tau_t = 0.1 0.1 ; time constant, in ps
68 ref_t = $mdp.temperature $mdp.temperature ; reference temperature, one for each group, in K
69 ; Pressure coupling is on
70 pcoupl = Parrinello-Rahman ; Pressure coupling on in NPT
71 pcoupltype = isotropic ; uniform scaling of box vectors
72 tau_p = 2.0 ; time constant, in ps
73 ref_p = 1.0 ; reference pressure, in bar
74 compressibility = 4.5e-5 ; isothermal compressibility of water, bar^-1
75 refcoord_scaling = com
76 ; Periodic boundary conditions
77 pbc = xyz ; 3-D PBC
78 ; Dispersion correction
79 DispCorr = EnerPres ; account for cut-off vdW scheme
80 ; Velocity generation
81 gen_vel = no ; Velocity generation is off
82 #end if
83 </configfile>
84
85 </configfiles>
86 <inputs>
87 <param argument="gro_input" type="data" format='gro' label="GRO structure file."/>
88 <param argument="top_input" type="data" format='top' label="Topology (TOP) file."/>
89 <param argument="cpt_input" type="data" format='cpt' label="Checkpoint (CPT) file from NVT run."/>
90 <param argument="itp_input" type="data" format='itp' label="Position restraint file."/>
91
92 <expand macro="md_inputs"/>
93 </inputs>
94 <outputs>
95 <data name="output1" format="gro" from_work_dir="npt.gro">
96 <filter>str == 'gro' or str == 'both'</filter>
97 </data>
98 <data name="output5" format="pdb" from_work_dir="npt.pdb">
99 <filter>str == 'pdb' or str == 'both'</filter>
100 </data>
101 <data name="output2" format="cpt" from_work_dir="npt.cpt"/>
102 <data name="output3" format="trr" from_work_dir="npt.trr">
103 <filter>traj == 'trr' or traj == 'both'</filter>
104 </data>
105 <data name="output4" format="xtc" from_work_dir="npt.xtc">
106 <filter>traj == 'xtc' or traj == 'both'</filter>
107 </data>
108 <data name="report" format="txt" from_work_dir="verbose.txt">
109 <filter>capture_log</filter>
110 </data>
111 </outputs>
112
113 <tests>
114 <test>
115 <param name="gro_input" value="nvt.gro" />
116 <param name="top_input" value="topol_solv.top" />
117 <param name="cpt_input" value="nvt.cpt" />
118 <param name="itp_input" value="posres.itp" />
119 <param name="traj" value="xtc"/>
120 <param name="str" value="both"/>
121
122 <expand macro="test_params"/>
123
124 <output name="output1" file="npt.gro" ftype="gro" compare="sim_size"/>
125 <output name="output2" file="npt.cpt" ftype="cpt" compare="sim_size"/>
126 <output name="output4" file="npt.xtc" ftype="xtc" compare="sim_size"/>
127 <output name="output5" file="npt.pdb" ftype="pdb" compare="sim_size"/>
128 </test>
129
130 <test>
131 <param name="gro_input" value="nvt.gro" />
132 <param name="top_input" value="topol_solv.top" />
133 <param name="cpt_input" value="nvt.cpt" />
134 <param name="itp_input" value="posres.itp" />
135 <param name="traj" value="xtc"/>
136 <param name="str" value="pdb"/>
137
138 <expand macro="test_params"/>
139
140 <output name="output2" file="npt.cpt" ftype="cpt" compare="sim_size"/>
141 <output name="output4" file="npt.xtc" ftype="xtc" compare="sim_size"/>
142 <output name="output5" file="npt.pdb" ftype="pdb" compare="sim_size"/>
143 </test>
144
145 <test>
146 <param name="gro_input" value="nvt.gro" />
147 <param name="top_input" value="topol_solv.top" />
148 <param name="cpt_input" value="nvt.cpt" />
149 <param name="itp_input" value="posres.itp" />
150 <param name="str" value="none"/>
151 <param name="traj" value="trr"/>
152
153 <expand macro="test_params"/>
154
155 <output name="output2" file="npt.cpt" ftype="cpt" compare="sim_size"/>
156 <output name="output3" file="npt.trr" ftype="trr" compare="sim_size"/>
157 </test>
158
159 <test>
160 <param name="gro_input" value="nvt.gro" />
161 <param name="top_input" value="topol_solv.top" />
162 <param name="cpt_input" value="nvt.cpt" />
163 <param name="itp_input" value="posres.itp" />
164 <param name="mdpfile" value="custom" />
165 <param name="mdp_input" value="npt.mdp" />
166 <param name="traj" value="none"/>
167 <param name="str" value="gro"/>
168 <output name="output1" file="npt.gro" ftype="gro" compare="sim_size"/>
169 <output name="output2" file="npt.cpt" ftype="cpt" compare="sim_size"/>
170 </test>
171 </tests>
172 <help><![CDATA[
173
174 Upload GRO, TOP and ITP (position restraint) files for equilibration under an NPT ensemble, as well as the checkpoint (CPT) file from the NVT equilibration. To take advantage of all GROMACS features, upload an MDP file with simulation parameters. Otherwise, choose parameters through the Galaxy interface. See http://manual.gromacs.org/online/mdp_opt.html for more information on the options.
175
176 ]]></help>
177
178 <expand macro="citations" />
179
180 </tool>