comparison editconf.xml @ 0:e3cf745f5212 draft

Uploaded
author fmercuri
date Wed, 23 Jun 2021 20:47:31 +0000
parents
children 2f9bc346f824
comparison
equal deleted inserted replaced
-1:000000000000 0:e3cf745f5212
1 <tool id="gmx_editconf" name="GROMACS structure configuration" 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 ln -s '$input_file' ./input.$input_file.ext &&
13 gmx editconf
14 -f ./input.$input_file.ext
15 -o ./output.${output_format}
16 #if $box.config == "true":
17 -d $box.dim
18 -bt $box.type
19 #end if
20 &>> verbose.txt &&
21
22 cp ./output.${output_format} '$output'
23
24 ]]></command>
25
26 <inputs>
27 <param argument="input_file" type="data" format='gro,pdb' label="Input structure"/>
28 <param argument="output_format" type="select" label="Output format">
29 <option value="gro">GRO file</option>
30 <option value="pdb">PDB file</option>
31 </param>
32
33 <conditional name="box">
34 <param argument="config" type="select" label="Configure box?">
35 <option value="true">Yes</option>
36 <option value="false" selected="true">No</option>
37 </param>
38 <when value="true">
39 <param argument="dim" 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" />
40 <param argument="type" type="select" label="Box type"
41 help="triclinic is a triclinic box, cubic is a rectangular box with all sides equal dodecahedron represents a rhombic dodecahedron and octahedron is a truncated octahedron. The last two are special cases of a triclinic box. The length of the three box vectors of the truncated octahedron is the shortest distance between two opposite hexagons. Relative to a cubic box with some periodic image distance, the volume of a dodecahedron with this same periodic distance is 0.71 times that of the cube, and that of a truncated octahedron is 0.77 times.">
42 <option value="cubic">Rectangular box with all sides equal</option>
43 <option value="triclinic">Triclinic</option>
44 <option value="dodecahedron">represents a rhombic dodecahedron</option>
45 <option value="octahedron">truncated octahedron</option>
46 </param>
47 </when>
48 <when value="false"/>
49 </conditional>
50
51 <expand macro="log" />
52
53 </inputs>
54 <outputs>
55 <data name="output" format="gro">
56 <change_format>
57 <when input="output_format" value="gro" format="gro"/>
58 <when input="output_format" value="pdb" format="pdb"/>
59 </change_format>
60 </data>
61 <expand macro="log_outputs" />
62 </outputs>
63 <tests>
64 <test>
65 <param name="input_file" value="processed.gro" ftype="gro"/>
66 <param name="output_format" value="gro" />
67 <param name="config" value="true" />
68 <param name="dim" value="1.0" />
69 <param name="type" value="cubic" />
70 <output name="output" file="newbox.gro"/>
71 </test>
72 <test>
73 <param name="input_file" value="newbox.gro" ftype="gro"/>
74 <param name="output_format" value="pdb" />
75 <param name="config" value="false" />
76 <output name="output" file="newbox.pdb"/>
77 </test>
78 </tests>
79 <help><![CDATA[
80
81 .. class:: infomark
82
83 **What it does**
84
85 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.
86
87 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.
88
89 _____
90
91 .. class:: infomark
92
93 **Input**
94
95 - PDB file.
96 - Water model and forcefield must be specified.
97 - Parameters for the simulation box (dimensions and shape).
98
99 _____
100
101
102 .. class:: infomark
103
104 **Output**
105
106 - GROMACS topology (TOP) file.
107 - Position restraint (itp) file, which may be useful for system equilibration.
108 - GRO structure file.
109
110 ]]></help>
111
112 <expand macro="citations" />
113 </tool>