view editconf.xml @ 2:2f9bc346f824 draft

author fmercuri
date Wed, 23 Jun 2021 21:08:13 +0000
parents e3cf745f5212
children 0876b56a3b3d
line wrap: on
line source

<tool id="gmx_editconf_daimoners" name="GROMACS structure configuration daimoners edition"  version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
    <description>using editconf</description>
        <token name="@GALAXY_VERSION@">0</token>

    <expand macro="requirements" />

    <command detect_errors="exit_code"><![CDATA[

        ln -s '$input_file' ./input.$input_file.ext &&
        gmx editconf
            -f ./input.$input_file.ext
            -o ./output.${output_format}
            #if $box.config == "true":
                -d $box.dim 
                -bt $box.type
            #end if
            &>> verbose.txt &&

        cp ./output.${output_format} '$output'


        <param argument="input_file" type="data" format='gro,pdb' label="Input structure"/>
        <param argument="output_format" type="select" label="Output format">
            <option value="gro">GRO file</option>
            <option value="pdb">PDB file</option>
        <conditional name="box">
            <param argument="config" type="select" label="Configure box?">
                <option value="true">Yes</option>
                <option value="false" selected="true">No</option>
            <when value="true">
                <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" />
                <param argument="type" type="select" label="Box type"
                    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.">
                    <option value="cubic">Rectangular box with all sides equal</option>
                    <option value="triclinic">Triclinic</option>
                    <option value="dodecahedron">represents a rhombic dodecahedron</option>
                    <option value="octahedron">truncated octahedron</option>
            <when value="false"/>

    <expand macro="log" />

        <data name="output" format="gro">
                <when input="output_format" value="gro" format="gro"/>
                <when input="output_format" value="pdb" format="pdb"/>
        <expand macro="log_outputs" />
            <param name="input_file" value="processed.gro" ftype="gro"/>
            <param name="output_format" value="gro" />
            <param name="config" value="true" />
            <param name="dim" value="1.0" />
            <param name="type" value="cubic" />
            <output name="output" file="newbox.gro"/>
            <param name="input_file" value="newbox.gro" ftype="gro"/>
            <param name="output_format" value="pdb" />
            <param name="config" value="false" />
            <output name="output" file="newbox.pdb"/>

.. class:: infomark

**What it does**

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.

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. 


.. class:: infomark


       - PDB file.
       - Water model and forcefield must be specified.
       - Parameters for the simulation box (dimensions and shape).

.. class:: infomark


       - GROMACS topology (TOP) file.
       - Position restraint (itp) file, which may be useful for system equilibration.
       - GRO structure file.


    <expand macro="citations" />