diff rnaplot.xml @ 0:1d249ed33108 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/vienna_rna commit 78112b796295701aabd1ee2268983222f0d27374
author bgruening
date Wed, 05 Oct 2016 11:52:23 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rnaplot.xml	Wed Oct 05 11:52:23 2016 -0400
@@ -0,0 +1,92 @@
+<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>