changeset 1:d5b50d6f528e default tip

Uploaded
author rico
date Fri, 06 Apr 2012 14:31:09 -0400
parents fe2fd2407c23
children
files pathway_image.xml
diffstat 1 files changed, 50 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pathway_image.xml	Fri Apr 06 14:31:09 2012 -0400
@@ -0,0 +1,50 @@
+<tool id="gd_pathway_image" name="Generate" version="1.0.0">
+  <description>KEGG pathway images</description>
+
+  <command interpreter="python">
+    mkpthwpng.py
+      "--input=${input}"
+      "--output=${output}"
+      "--KEGGpath=${pathway}"
+      "--posKEGGclmn=${input.metadata.kegg_path}"
+      "--KEGGgeneposcolmn=${input.metadata.kegg_gene}"
+  </command>
+
+  <inputs>
+    <param name="input" type="data" format="wpf" label="Table">
+      <validator type="metadata" check="kegg_gene,kegg_path" message="Missing KEGG gene code column and/or KEGG pathway code/name column metadata.  Click the pencil icon in the history item to edit/save the metadata attributes" />
+    </param>
+    <param name="pathway" type="select">
+      <options from_file="gd.pathways.txt">
+        <column name="value" index="1"/>
+        <column name="name" index="2"/>
+        <!--
+        <filter type="data_meta" ref="input" key="dbkey" column="0" separator="\t" />
+        -->
+      </options>
+    </param>
+  </inputs>
+
+  <outputs>
+    <data name="output" format="png" />
+  </outputs>
+
+  <!--
+  <tests>
+    <test>
+      <param name="input" value="genome_diversity/test_in/sample.wpf" ftype="wpf" />
+      <param name="pathway" value="cfa05214" />
+      <output name="output" file="genome_diversity/test_out/pathway_image/pathway_image.png" compare="sim_size" delta = "10000" />
+    </test>
+  </tests>
+  -->
+
+  <help>
+**What it does**
+
+This tool produces an image of an input KEGG pathway, highlighting the
+modules representing genes in an input list.  NOTE:  a given gene can
+be assigned to multiple modules, and different genes can be assigned to
+the same module.
+  </help>
+</tool>