changeset 0:d7506cdbd5ec draft

Uploaded
author iuc
date Tue, 17 Mar 2015 15:49:43 -0400
parents
children c859c5a0a728
files macros.xml simpletable.xml static/images/tableview.png tool_dependencies.xml
diffstat 4 files changed, 161 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Tue Mar 17 15:49:43 2015 -0400
@@ -0,0 +1,99 @@
+<macros>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="0.67.5">circos</requirement>
+            <requirement type="package" version="0.20">circostools</requirement>
+            <yield/>
+        </requirements>
+    </xml>
+    <token name="@WRAPPER_VERSION@">0.67.5</token>
+    <xml name="stdio">
+        <stdio>
+            <!-- Anything other than zero is an error -->
+            <exit_code range="1:" />
+            <exit_code range=":-1" />
+            <!-- In case the return code has not been set propery check stderr too -->
+            <regex match="Error:" />
+            <regex match="Exception:" />
+        </stdio>
+    </xml>
+
+
+
+    <xml name="strand2">
+        <param name="strand" type="select" label="Calculation based on strandedness?">
+            <option value="" selected="True">Overlaps on either strand</option>
+            <option value="-s">Only overlaps occurring on the **same** strand.</option>
+            <option value="-S">Only overlaps occurring on the **opposite** strand.</option>
+        </param>
+    </xml>
+    <xml name="seed">
+        <conditional name="seed">
+            <param name="seed_choose" type="select" label="Choose Seed?" help="(-seed)">
+                <option value="False" selected="True">Random Shuffling</option>
+                <option value="True">Choose fixed seed</option>
+            </param>
+            <when value="True">
+                <param name="seed" type="integer" value="12345" label="Enter Seed" />
+            </when>
+            <when value="False" />
+        </conditional>
+    </xml>
+    <xml name="split">
+        <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue=""
+            label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage."
+            help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data. (-split)" />
+    </xml>
+    <xml name="genome">
+        <param format="tabular" name="genome" type="data" label="Genome file" />
+        <!--TODO: make use of: ${chromInfo} -->
+    </xml>
+    <xml name="addition">
+        <conditional name="addition">
+            <param name="addition_select" type="select" label="Choose what you want to do">
+                <option value="b" selected="True">Increase the BED/GFF/VCF entry by the same number base pairs in each direction.</option>
+                <option value="lr">Increase by Start Coordinate and End Coordinate</option>
+            </param>
+            <when value="b">
+                <param name="b" value="1" label="Number of base pairs" type="integer" />
+            </when>
+            <when value="lr">
+                <param name="l" type="integer" value="0" label="The number of base pairs to subtract from the start coordinate" />
+                <param name="r" type="integer" value="0" label="The number of base pairs to add to the end coordinate" />
+            </when>
+        </conditional>
+    </xml>
+    <xml name="print_header">
+        <param name="header" type="boolean" checked="False" truevalue="-header" falsevalue=""
+            label="Print the header from the A file prior to results" help="(-header)" />
+    </xml>
+    <!-- TODO this is currently not used, but we should make use of it -->
+    <xml name="genome_validator">
+        <validator type="unspecified_build" />
+        <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." />
+    </xml>
+
+    <!-- ToDo column_picker -->
+    <xml name="choose_columns">
+        <param name="cols" type="text" value=""
+            label="Specify the column(s) (comma separated) that should be summarized"
+            help="(-c)">
+            <sanitizer invalid_char="">
+                <valid initial="string.digits"><add value=","/></valid>
+            </sanitizer>
+        </param>
+    </xml>
+
+    <xml name="choose_operations">
+        <param name="operation" type="select" label="Specify the operation">
+            <yield />
+        </param>
+    </xml>
+
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.1101/gr.092759.109</citation>
+            <yield />
+        </citations>
+    </xml>
+</macros>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/simpletable.xml	Tue Mar 17 15:49:43 2015 -0400
@@ -0,0 +1,53 @@
+<tool id="circos_simpletable" name="Simple Table Plotter" version="@WRAPPER_VERSION@.0">
+    <description></description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements" />
+    <expand macro="stdio" />
+    <command>
+<![CDATA[
+cat $input |
+    perl \${CIRCOSTOOLS}/tools/tableviewer/bin/parse-table |
+    perl \${CIRCOSTOOLS}/tools/tableviewer/bin/make-conf -dir data;
+
+cp -Rv \${CIRCOSTOOLS}/tools/tableviewer/etc .;
+mkdir img;
+circos -conf .;
+
+cp img/tableview.png $output_png;
+cp img/tableview.svg $output_svg;
+]]>
+    </command>
+    <inputs>
+        <param format="tabular" name="input" type="data" label="Data Table" />
+    </inputs>
+    <outputs>
+        <data format="svg" name="output_svg">
+        </data>
+        <data format="png" name="output_png">
+        </data>
+    </outputs>
+    <tests>
+    </tests>
+    <help>
+<![CDATA[
+**What it does**
+
+Very simple table plotter
+
+.. image:: $PATH_TO_IMAGES/tablevie.png
+
+.. class:: warningmark
+
+1. Your tabular data MUST have both a column and row header::
+
+    Data  A  B
+    A     4  2
+    B     0 -2
+
+@REFERENCES@
+]]>
+    </help>
+    <expand macro="citations" />
+</tool>
Binary file static/images/tableview.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Tue Mar 17 15:49:43 2015 -0400
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="circos" version="0.67.5">
+        <repository changeset_revision="2488e6ef69a8" name="package_circos_0_67_5" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="circostools" version="0.20">
+        <repository changeset_revision="42cf9b16b7df" name="package_circostools_0_20" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
+</tool_dependency>