changeset 6:e8e29320fcf2 draft

Uploaded
author moheydarian
date Tue, 14 Mar 2017 14:21:38 -0400
parents d0a63c827053
children 51c11061dd44
files heatmap2.xml
diffstat 1 files changed, 56 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/heatmap2.xml	Tue Mar 14 14:21:38 2017 -0400
@@ -0,0 +1,56 @@
+<tool id="heatmap2" name="heatmap2" version="0.0.1">
+    <requirements>
+        <requirement type="package">r-getopt</requirement>
+        <requirement type="package">r-rcolorbrewer</requirement>
+        <requirement type="package">r-gplots</requirement>
+    </requirements>
+    <stdio>
+        <exit_code range="1:" />
+    </stdio>
+    <command><![CDATA[
+        Rscript ${__tool_directory__}/heatmap2.R --input "$input1" --title "$title" --keylabel "$keylabel" 
+        --transform "$transformation.transform"
+        --output "Rplot.pdf"
+
+    ]]></command>
+    <inputs>
+        <param name="input1" type="data" format="tabular" label="Input should have column headers - these will be the columns that are plotted"/>
+        <param name="title" size="30" type="text" format="txt" label="Plot title"/> 
+        <param name=" keylabel" size="30" type="text" format="txt" label="key label"/> 
+        <conditional name="transformation">
+            <param name="transform" type="select" label="Advanced - log transformation">
+              <option value="none">Plot the data as it is</option>
+              <option value="log2">Log2(value) transform my data</option>
+              <option value="log2plus1">Log2(value+1) transform my data</option>
+              <option value="log10">Log10(value) transform my data</option>
+              <option value="log10plus1">Log10(value+1) transform my data</option>
+            </param>
+        </conditional>
+    </inputs>
+    <outputs>
+        <!-- <data name="output1" format="png" from_work_dir="Rplot.png"/> -->
+        <data name="output1" format="pdf" from_work_dir="Rplot.pdf"/>
+    </outputs>
+    <tests>
+        <test>
+            <param name="input1" value="input.txt"/>
+            <output name="output1" file="Rplot.pdf"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+This tool will generate a clustered heatmap of your data. More customization options will be added, for now the heatmap uses a red coloring scheme and clustering is performed using the "maximum" similarity measure and the "complete" hierarchical clustering measure. 
+
+Input data should have row labels in the first column and column labels. For example, the row labels (the first column) should represent gene IDs and the column labels should represent sample IDs. 
+
+This wrapper employs the heatmap.2 function of R.
+    ]]></help>
+    <citations>
+        <citation type="bibtex">
+@misc{renameTODO,
+  author = {TODO, FirstTODO},
+  year = {TODO},
+  title = {TODO},
+  url = {under construction},
+}</citation>
+    </citations>
+</tool>