comparison editconf.xml @ 29:9fcc059ba508 draft default tip

Uploaded
author fmercuri
date Fri, 25 Jun 2021 17:38:08 +0000
parents
children
comparison
equal deleted inserted replaced
28:fbfc5e6797d1 29:9fcc059ba508
1 <tool id="gmx_editconf_daimoners" name="GROMACS structure configuration daimoners edition" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
2 <description>using editconf</description>
3 <macros>
4 <token name="@GALAXY_VERSION@">0</token>
5 <import>macros.xml</import>
6 </macros>
7
8 <expand macro="requirements" />
9
10 <command detect_errors="exit_code"><![CDATA[
11
12 echo "boxtype.boxytype:" $box.boxtype.boxtype >> verbose.txt &&
13
14 ln -s '$input_file' ./input.$input_file.ext &&
15 gmx editconf
16 -f ./input.$input_file.ext
17 -o ./output.${output_format}
18 #if $box.config == "true":
19 #if $box.boxtype.boxtype == "cubic":
20 -box $box.boxtype.cubicdim
21 #end if
22 #if $box.boxtype.boxtype == "custom":
23 -d $box.boxtype.boxdim
24 -bt $box.boxtype.type
25 #end if
26 #end if
27 &>> verbose.txt &&
28
29 cp ./output.${output_format} '$output'
30
31 ]]></command>
32
33 <inputs>
34 <param argument="input_file" type="data" format='gro,pdb' label="Input structure"/>
35 <param argument="output_format" type="select" label="Output format">
36 <option value="gro">GRO file</option>
37 <option value="pdb">PDB file</option>
38 </param>
39
40 <conditional name="box">
41 <param argument="config" type="select" label="Configure box?">
42 <option value="true">Yes</option>
43 <option value="false" selected="true">No</option>
44 </param>
45 <when value="true">
46 <conditional name="boxtype">
47 <param argument="boxtype" type="select" label="Box type">
48 <option value="cubic">Standard cubic box</option>
49 <option value="custom">Custom box type</option>
50 </param>
51
52 <when value="cubic">
53 <param argument="cubicdim" type="float" label="Box dimensions in nanometers" value="0.0" min="0.0" max="1000.0" help="Dimensions of the box in which simulation will take place" />
54 </when>
55
56 <when value="custom">
57 <param argument="boxdim" type="float" label="Size to be added to the dimensions of the system" value="0.0" min="0.0" max="1000.0" help="Size to be added to the dimension of the system" />
58 <param argument="type" type="select" label="Box type" help="Box type">
59 <option value="cubic">Cubic</option>
60 <option value="triclinic">Triclinic</option>
61 <option value="dodecahedron">Rhombic dodecahedron</option>
62 <option value="octahedron">Truncated octahedron</option>
63 </param>
64 </when>
65 </conditional>
66 </when>
67 <when value="false"/>
68 </conditional>
69
70 <expand macro="log" />
71
72 </inputs>
73 <outputs>
74 <data name="output" format="gro">
75 <change_format>
76 <when input="output_format" value="gro" format="gro"/>
77 <when input="output_format" value="pdb" format="pdb"/>
78 </change_format>
79 </data>
80 <expand macro="log_outputs" />
81 </outputs>
82 <tests>
83 <test>
84 <param name="input_file" value="processed.gro" ftype="gro"/>
85 <param name="output_format" value="gro" />
86 <param name="config" value="true" />
87 <param name="dim" value="1.0" />
88 <param name="type" value="cubic" />
89 <output name="output" file="newbox.gro"/>
90 </test>
91 <test>
92 <param name="input_file" value="newbox.gro" ftype="gro"/>
93 <param name="output_format" value="pdb" />
94 <param name="config" value="false" />
95 <output name="output" file="newbox.pdb"/>
96 </test>
97 </tests>
98 <help><![CDATA[
99
100 .. class:: infomark
101
102 **What it does**
103
104 This tool performs the initial setup prior to a GROMACS simulation. This entails producing a topology from an input structure using the pdb2gmx command and also defining a simulation box with editconf.
105
106 Please note that the tool will only successfully generate a topology for residues it recognizes (i.e. standard amino acids). If the structure contains other components such as ligands, these should be separately parameterized with the AmberTools or ACPYPE tools. In this case, make sure to also use an AMBER forcefield for this tool to ensure compatability with the ligand topology.
107
108 _____
109
110 .. class:: infomark
111
112 **Input**
113
114 - PDB file.
115 - Water model and forcefield must be specified.
116 - Parameters for the simulation box (dimensions and shape).
117
118 _____
119
120
121 .. class:: infomark
122
123 **Output**
124
125 - GROMACS topology (TOP) file.
126 - Position restraint (itp) file, which may be useful for system equilibration.
127 - GRO structure file.
128
129 ]]></help>
130
131 <expand macro="citations" />
132 </tool>