diff demultiplex.xml @ 4:146bbd9d58f6 draft default tip

Added tests
author davidvanzessen
date Mon, 12 Nov 2018 09:33:34 -0500
parents 500c2eee063d
children
line wrap: on
line diff
--- a/demultiplex.xml	Fri Nov 09 05:52:15 2018 -0500
+++ b/demultiplex.xml	Mon Nov 12 09:33:34 2018 -0500
@@ -1,9 +1,10 @@
 <tool id="demultiplex-emc" name="Demultiplex" version="1.0.0">
+    <description></description>
     <requirements>
         <requirement type="package" version="3.7.0">python</requirement>
         <requirement type="package" version="1.72">biopython</requirement>
     </requirements>
-    <description></description>
+    
     <command>
         mkdir outputs;
         python3 $__tool_directory__/demultiplex.py 
@@ -18,29 +19,39 @@
     </inputs>
     <outputs>
         <!--<data name="debug" format="txt" label="debug"/>-->
-        <collection name='demultiplex_out' format_source='input' type='list'>
-            <discover_datasets pattern="__name_and_ext__" directory="outputs" format_source='input'/>
+        <collection name='demultiplex_out' format_source='input' type="list">
+            <discover_datasets pattern="__designation_and_ext__" directory="outputs"/>
+            <!--<discover_datasets pattern="(?P&lt;designation&gt;.+)\.(?P&lt;ext&gt;.+)" directory="outputs"/>-->
         </collection>
     </outputs>
     <tests>
-    <!--
         <test>
-            <param name="input1" value="1.bed"/>
-            <param name="input2" value="2.bed"/>
-            <output name="out_file1" file="cat_wrapper_out1.bed"/>
+            <param name="input" value="input.fastq"/>
+            <param name="mapping" value="mapping.txt"/>
+            <output_collection name="demultiplex_out" type="list">
+                <element name="sequence1" file="sequence1.fastq"/>
+                <element name="sequence2" file="sequence2.fastq"/>
+            </output_collection>
         </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"/>
+            <param name="input" value="input.fasta"/>
+            <param name="mapping" value="mapping.txt"/>
+            <output_collection name="demultiplex_out" type="list">
+                <element name="sequence1" file="sequence1.fasta"/>
+                <element name="sequence2" file="sequence2.fasta"/>
+            </output_collection>
         </test>
-    -->
     </tests>
     <help>
 There is no help
     </help>
+    <citations>
+        <citation type="bibtex">@misc{Demultplex-EMC,
+            author = {Erasmus MC},
+            title = {Demultiplex-EMC},
+            year = {2018},
+            howpublished = {https://github.com/ErasmusMC-Bioinformatics/Demultiplex}
+        }</citation>
+    </citations>
 </tool>