view makendx.xml @ 7:b3ae940ed305 draft

"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tools/gromacs commit ab7232ec03a3361f808f5a0be0828e0f7fbd376d"
author chemteam
date Mon, 23 Nov 2020 10:48:01 +0000
parents d9eb276dfa32
children
line wrap: on
line source

<tool id="gmx_makendx" name="Create GROMACS index files" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
    <description>using make_ndx</description>
    <macros>
        <import>macros.xml</import>
        <token name="@GALAXY_VERSION@">0</token>
    </macros>

    <expand macro="requirements" />

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

        ln -s '$input_file' ./input.$input_file.ext &&
        (echo '$sel'; echo 'q') | gmx make_ndx -f ./input.$input_file.ext -o ./ndx.ndx &>> verbose.txt &&
        cp ./ndx.ndx '$ndx'

    ]]></command>

    <inputs>
        <param argument="input_file" type="data" format='gro,pdb' label="Input structure"/>
        <param argument="sel" type="text" label="Selection command" help="Selection for the new index group, e.g. 'r34' to select residue 34. Use  the operators '|' (or) and &amp; (and) to combine predefined groups.">
            <sanitizer>
                <valid>
                    <add value="|" />
                    <add value="&amp;" />
                    <add value="!" />
                </valid>
            </sanitizer>
        </param>

        <expand macro="log" />

    </inputs>
    <outputs>
        <data name="ndx" format="ndx"/>
        <expand macro="log_outputs" />
    </outputs>
    <tests>
        <test>
            <param name="input_file" value="str_ions.gro" ftype="gro"/>
            <param name="sel" value="! 1 &amp; 13" />
            <output name="ndx">
                <assert_contents>
                    <has_line line="[ !Protein_&amp;_CL ]"/>
                    <has_text text="  93   94"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[

.. class:: infomark

**What it does**

Generates GROMACS custom index files.

_____

.. class:: infomark

**Input**

    - A PDB or GRO file.
    - A selection command for the new index group to be included in the output file. Combine previously defined groups using identifying values with the operators '|' (or) and & (and). For example, '1 | 4' will create a new index group containing all atoms contained within the first and fourth index groups already specified (according to their position in the input file).

_____

.. class:: infomark

**Output**

    - A GROMACS index (ndx) file, containing the 'default' index groups and the new group at the end of the file.

    ]]></help>

    <expand macro="citations" />
</tool>