view rnaplot.xml @ 6:23c2c9a7b62e draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/vienna_rna commit 36681a08c6e44c663169caaefd964781c43d0d29
author rnateam
date Wed, 20 Dec 2017 08:33:55 -0500
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>