comparison minim.xml @ 0:911eb71ccd1f draft

planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/gromacs commit 177cab098ac548bfdecba9d9f04614aec5f6c618
author chemteam
date Thu, 04 Oct 2018 17:39:57 -0400
parents
children ea7b9183bf30
comparison
equal deleted inserted replaced
-1:000000000000 0:911eb71ccd1f
1 <tool id="gmx_em" name="GROMACS energy minimization" version="@VERSION@">
2 <description>of the system prior to equilibration and production MD</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6
7 <expand macro="requirements" />
8
9 <command detect_errors="exit_code"><![CDATA[
10
11 #if $mdp.mdpfile == 'custom':
12 ln -s '$mdp.mdp_input' ./minim.mdp &&
13 #else:
14 ln -s '$minim' ./minim.mdp &&
15 #end if
16
17 ln -s '$gro_input' ./solv_ions.gro &&
18 ln -s '$top_input' ./top_input.top &&
19
20 gmx grompp -f ./minim.mdp -c ./solv_ions.gro -p ./top_input.top -o em.tpr &>> verbose.txt &&
21 gmx mdrun -deffnm em &>> verbose.txt
22
23 ]]></command>
24 <configfiles>
25 <!-- .mdp files for the gromacs simulation -->
26 <configfile name="minim">
27 #if $mdp.mdpfile == 'default':
28 ; minim.mdp - used as input into grompp to generate em.tpr
29 integrator = $mdp.integrator ; Algorithm (steep = steepest descent minimization)
30 emtol = $mdp.emtol ; Stop minimization when the maximum force is less than this value
31 emstep = $mdp.emstep ; Energy step size
32 nsteps = $mdp.md_steps ; Maximum number of (minimization) steps to perform
33
34 ; Parameters describing how to find the neighbors of each atom and how to calculate the interactions
35 nstlist = 1 ; Frequency to update the neighbor list and long range forces
36 cutoff-scheme = $mdp.cutoffscheme
37 ns_type = grid ; Method to determine neighbor list (simple, grid)
38 coulombtype = $mdp.coulombtype ; Treatment of long range electrostatic interactions
39 rcoulomb = $mdp.rcoulomb ; Short-range electrostatic cut-off
40 rlist = $mdp.rlist ; Cut-off distance for the short-range neighbor list.
41 rvdw = $mdp.rvdw ; Short-range Van der Waals cut-off
42 pbc = xyz ; Periodic Boundary Conditions (yes/no)
43 #end if
44 </configfile>
45 </configfiles>
46
47 <inputs>
48 <param argument="gro_input" type="data" format='gro' label="GRO structure file."/>
49 <param argument="top_input" type="data" format='top' label="Topology (TOP) file."/>
50 <param name="capture_log" type="boolean" value="false" label="Generate Detailed Log" help="Generate detailed log information that can be summarized with ParseLog."/>
51
52 <conditional name="mdp">
53 <param name="mdpfile" type="select" label="Parameter input">
54 <option value="custom">Upload own MDP file</option>
55 <option value="default">Use default (partially customisable) setting</option>
56 </param>
57 <when value="custom">
58 <param argument="mdp_input" type="data" format='mdp' label="MD parameters (MDP) file (optional; default settings if not set)."/>
59 </when>
60
61 <when value="default">
62 <param argument="integrator" type="select" label="Choice of integrator.">
63 <option value="steep">Steepest descent algorithm.</option>
64 <option value="cg">Conjugate gradient algorithm.</option>
65 <option value="l-bfgs">Quasi-Newtonian algorithm.</option>
66 </param>
67 <param argument="cutoffscheme" type="select" label="Neighbor searching.">
68 <option value="Verlet">Generate a pair list with buffering.</option>
69 <option value="group">Generate a pair list for groups of atoms.</option>
70 </param>
71 <param argument="coulombtype" type="select" label="Electrostatics.">
72 <option value="PME">Fast smooth Particle-Mesh Ewald (SPME) electrostatics.</option>
73 <option value="P3M-AD">Particle-Particle Particle-Mesh algorithm with analytical derivative.</option>
74 <option value="Reaction-Field-zero">Reaction field electrostatics.</option>
75 </param>
76 <param argument="rcoulomb" value="1.0" type="float" label="Distance for the Coulomb cut-off."/>
77 <param argument="rlist" value="1.0" type="float" label="Cut-off distance for the short-range neighbor list. Ignored if the Verlet cutoff scheme is set."/>
78 <param argument="rvdw" value="1.0" type="float" label="Short range van der Waals cutoff."/>
79 <param argument="md_steps" type="integer" label="Number of steps for the MD simulation" value="0" min="0" max="1000000" help="MD steps" />
80 <param argument="emtol" type="float" label="EM tolerance" value="0" min="0" max="10000" help="The minimization is converged when the maximum force is smaller than this value" />
81 <param argument="emstep" type="float" label="Maximum step size /nm" value="0.01" min="0.0001" max="1.0" help="Initial step size in nm." />
82 </when>
83 </conditional>
84 </inputs>
85 <outputs>
86 <data name="output1" format="gro" from_work_dir="em.gro"/>
87 <data name="report" format="txt" from_work_dir="verbose.txt">
88 <filter>capture_log</filter>
89 </data>
90 </outputs>
91 <tests>
92 <test>
93 <param name="gro_input" value="solv_ions.gro" />
94 <param name="top_input" value="topol_solv.top" />
95 <param name="mdpfile" value="default" />
96 <param name="integrator" value="steep" />
97 <param name="cutoffscheme" value="Verlet" />
98 <param name="coulombtype" value="PME" />
99 <param name="rcoulomb" value="1.0" />
100 <param name="rlist" value="1.0" />
101 <param name="md_steps" value="50000" />
102 <param name="emtol" value="1000.0" />
103 <param name="emstep" value="0.01" />
104
105 <output name="output1" file="em.gro" ftype="gro" compare="sim_size"/>
106 </test>
107 <test>
108 <param name="gro_input" value="solv_ions.gro" />
109 <param name="top_input" value="topol_solv.top" />
110 <param name="mdpfile" value="custom" />
111 <param name="mdp_input" value="minim.mdp" />
112 <output name="output1" file="em.gro" ftype="gro" compare="sim_size"/>
113 </test>
114
115 </tests>
116 <help><![CDATA[
117
118 Upload GRO and TOP files for energy minimisation. 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.
119
120 ]]></help>
121
122 <expand macro="citations" />
123 </tool>