diff concatenate.xml @ 0:7a974f285033 draft

Initial commit with concatenate and trinity tools. Still testing.
author trinity_ctat
date Mon, 11 Sep 2017 16:40:43 -0400
parents
children 1e638acde0cf
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/concatenate.xml	Mon Sep 11 16:40:43 2017 -0400
@@ -0,0 +1,59 @@
+<tool id="catbash" name="Concatenate datasets">
+    <description> concatenate datasets from tail to head</description>
+    <command interpreter="python">
+        bash_command_executer.py cat
+        $input1
+        #for $q in $queries
+            ${q.input2}
+        #end for
+        > $out_file1 
+    </command>
+    <inputs>
+        <param name="input1" type="data" label="Concatenate Dataset"/>
+        <repeat name="queries" title="Dataset">
+            <param name="input2" type="data" label="Select" />
+        </repeat>
+    </inputs>
+    <outputs>
+        <data name="out_file1" format="input" metadata_source="input1"/>
+    </outputs>
+    <tests>
+        <test>
+            <param name="input1" value="Sp_ds.left.fq"/>
+            <param name="input2" value="Sp_hs.left.fq"/>
+            <output name="out_file1" file="Sp.cat_ds_hs.left.fq">
+                <assert_contents>
+                    <has_line_matching expression=".+" />
+                </assert_contents>
+            </output>
+        </test>
+        <test>
+            <param name="input1" value="Sp_ds.right.fq"/>
+            <param name="input2" value="Sp_hs.right.fq"/>
+            <output name="out_file1" file="Sp.cat_ds_hs.right.fq">
+                <assert_contents>
+                    <has_line_matching expression=".+" />
+                </assert_contents>
+            </output>
+        </test>
+        <!--TODO: if possible, enhance the underlying test code to handle this test
+            the problem is multiple params with the same name "input2"
+        <test>
+            <param name="input1" value="1.bed"/>
+            <param name="input2" value="2.bed"/>
+            <param name="input2" value="3.bed"/>
+            <output name="out_file1" file="cat_wrapper_out2.bed"/>
+        </test>
+        -->
+    </tests>
+    <help>
+.. class:: infomark 
+
+Combine left and right reads of paired ends for different conditions into a single target for Trinity assembly.
+
+If you are following the Trinity RNA-seq protocol please go here_ for a galaxy tool walk through or the Nature Protocols paper_.
+
+.. _here: https://github.com/trinityrnaseq/GalaxyTrinityProtocol/wiki
+.. _paper: http://www.nature.com/nprot/journal/v8/n8/full/nprot.2013.084.html
+    </help>
+</tool>