view rnaplot.xml @ 5:dd6956aeee1f draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/vienna_rna commit d9f13fd859165e4280412ec73f8f3f8b258d351d-dirty
author rnateam
date Thu, 28 Sep 2017 16:23:26 -0400
parents b64631260c13
children
line wrap: on
line source

<tool id="viennarna_rnaplot" name="@EXECUTABLE@" version="@VERSION@.0">
    <description> Draw RNA Secondary Structures </description>
    <macros>
        <token name="@EXECUTABLE@">RNAplot</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <expand macro="version_command" />
    <command>
<![CDATA[
    RNAplot < '$input'
    --layout-type=$layoutSelector
    --output-format=$formatOptions.formatSelector
    #if str($formatOptions.formatSelector) == "ps"
        --pre=$formatOptions.pre
        --post=$formatOptions.post
        && tar -cf '$imagesFile' *.ps
    #elif str($formatOptions.formatSelector) == "gml"
        && tar -cf '$imagesFile' *.gml
    #elif str($formatOptions.formatSelector) == "svg"
        && tar -cf '$imagesFile' *.svg
    #else
        && tar -cf '$imagesFile' *.ss
    #end if
]]>
    </command>
    <inputs>
        <param format="txt,dbn" name="input" type="data" label="DotBracket structure"/>
        <param name="layoutSelector" type="select" label="Layout selection" argument="--layout-type">
            <option value="0">Radial Layout</option>
            <option value="1" selected="true">Naview Layout</option>
        </param>
        <conditional name="formatOptions">
            <param name="formatSelector" type="select" label="Output format selection" help="--output-format">
                <option value="ps" selected="true">Postscript (.ps)</option>
                <option value="gml">Graph Meta Language (.gml)</option>
                <option value="svg">Scalable Vector Graphics (.svg)</option>
                <option value="xrna">XRNA Save File (.ss)</option>
            </param>
            <when value="ps">
                <param name="pre" type="text" label="Add annotation macros to postscript file" help="--pre"/>
                <param name="post" type="text" label="Add annotations to postscript file" help="--post"/>
            </when>
            <when value="gml">
            </when>
            <when value="svg">
            </when>
            <when value="xrna">
            </when>
        </conditional>
    </inputs>

    <outputs>
        <data format="tar" name="imagesFile"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="rnaplot_input1.dbn"/>
            <output name="imagesFile">
                <assert_contents>
                    <has_line line="%%Title: RNA Secondary Structure Plot"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help>
<![CDATA[

**RNAplot**

The program reads RNA sequences and structures in the format as produced by RNAfold and produces drawings of the secondary structure graph. The coordinates are produced using either E. Bruccoleri's naview routines, or a simple radial layout method.

-----

**Input format**

RNAplot requires one input file

- Fasta file with an additional line with structure information in dot-bracket notation

------

**Outputs**

- several possible postscript images bundled together in a tar file


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