view rnadistance.xml @ 0:4286146cb3aa draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/vienna_rna commit 0065dafe7bbd382bb995b28cc4089c9e4f4eeeb9
author rnateam
date Tue, 06 Dec 2016 12:35:35 -0500
parents
children 7fc7a56750b9
line wrap: on
line source

<tool id="viennarna_rnadistance" name="@EXECUTABLE@" version="@VERSION@.0">
    <description>Calculate distance between secondary structures of two RNAs</description>
    <macros>
        <token name="@EXECUTABLE@">RNAdistance</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <expand macro="version_command" />
    <command>
<![CDATA[
        RNAdistance < '$input' > '$outfile'
        --distance=#echo ''.join(str($distance).split(','))#
        --compare=$compare
        $shapiro
        $backtrack
        #if $backtrack and str($compare)=="m"
            && cat backtrack.file >> '$outfile'
        #end if
]]>
    </command>
    <inputs>
        <param name="input" type="data" format="*" label="Primary and secondary stuctures file"/>
        <param name="distance" type="select" multiple="true" display="checkboxes" label="Representation to calculate the distance / alignment option">
                <option value="f" selected="true">full/tree</option>
                <option value="F">full/string</option>
                <option value="h">hit/tree</option>
                <option value="H">hit/string</option>
                <option value="w">weighted coarse/tree</option>
                <option value="W">weighted coarse/string</option>
                <option value="c">coarse/tree</option>
                <option value="C">coarse/string</option>
                <validator type="no_options" message="Please select at least one type."/>
        </param>
        <param name="compare" type="select" label="Comparison Option" help="-d">
            <option value="p" selected="True">p: pairwise (1st with 2nd, 3rd with 4th, ...)</option>
            <option value="m">m: matrix (each with each, output in matrix form)</option>
            <option value="f" >f: first (1st with 2nd, 1st with 3rd, ...)</option>
            <option value="c">c: continuous (1st with 2nd, 2nd with 3rd, ...)</option>
        </param>
        <param argument="--shapiro" type="boolean" checked="false" truevalue="--shapiro" falsevalue="" label="Use cost matrix by Bruce Shapiro" help="--shapiro"/>
        <param argument="--backtrack" type="boolean" checked="false" truevalue="--backtrack" falsevalue="" label="Print an alignment" help="--backtrack"/>
    </inputs>
    <outputs>
        <data format="txt" name="outfile"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="rnadistance_input1.dbn"/>
            <output name="outfile" file="rnadistance_result1.txt"/>
        </test>
    </tests>
    <help>
<![CDATA[
**RNAdistance**


-----

**Input format**

RNAdistance requires one input file with the following structure:
1st line: can be a comment line like in Fasta, begins with '>'
2nd line: sequence
3rd line: first secondary structure in dot-bracket notation
4th line: second secondary structure in dot-bracket notation
...
nth line: another sequence
...

Several different RNA secondary structures can be specified. The input has a Fasta-like structure but with secondary structure information.


------

**Outputs**

* distance of the structures
* with the backtrack options it is possible to get alignment ouput


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