diff stacks_cstacks.xml @ 3:6a7c5e218732 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks commit e1c1550e0bd61c88ffead2b1c4f6ab7393052393
author iuc
date Sat, 25 Jun 2016 17:28:35 -0400
parents a1807de3995a
children a62f7e799494
line wrap: on
line diff
--- a/stacks_cstacks.xml	Wed Jun 15 06:24:34 2016 -0400
+++ b/stacks_cstacks.xml	Sat Jun 25 17:28:35 2016 -0400
@@ -1,4 +1,4 @@
-<tool id="stacks_cstacks" name="Stacks: cstacks" version="@WRAPPER_VERSION@.0">
+<tool id="stacks_cstacks" name="Stacks: cstacks" version="@WRAPPER_VERSION@.2">
     <description>build a catalogue of loci</description>
     <macros>
         <import>macros.xml</import>
@@ -14,9 +14,9 @@
 
         #set $samples = ""
         #for $input_file in $input_col:
-            #set $filename = str($input_file.name)
+            #set $filename = str($input_file.element_identifier)
             #if not filename.endswith('.tsv'):
-                #set $filename = ".tsv"
+                #set $filename = $filename + ".tsv"
             #end if
             #if not re.search('catalog\.[a-z]+(\.tsv)?$', $filename):
                 ln -s "${input_file}" "stacks_inputs/$filename" &&
@@ -49,6 +49,8 @@
             #end if
 
             -o stacks_outputs
+
+             > cstacks.log 2>&1
     ]]></command>
 
     <inputs>
@@ -71,6 +73,8 @@
     </inputs>
 
     <outputs>
+        <data format="txt" name="output_log" label="cstacks.log with ${tool.name} on ${on_string}" from_work_dir="cstacks.log" />
+
         <data format="tabular" name="catalogtags" label="Catalog assembled loci (tags) with ${tool.name} on ${on_string}" from_work_dir="stacks_outputs/batch_1.catalog.tags.tsv" />
         <data format="tabular" name="catalogsnps" label="Catalog model calls (snps) with ${tool.name} on ${on_string}" from_work_dir="stacks_outputs/batch_1.catalog.snps.tsv" />
         <data format="tabular" name="catalogalleles" label="Catalog haplotypes (alleles) with ${tool.name} on ${on_string}" from_work_dir="stacks_outputs/batch_1.catalog.alleles.tsv" />
@@ -94,6 +98,12 @@
                </collection>
             </param>
 
+            <output name="output_log">
+                <assert_contents>
+                    <has_text text="done." />
+                </assert_contents>
+            </output>
+
             <!-- catalog -->
             <output name="catalogtags">
                 <assert_contents>
@@ -130,6 +140,12 @@
             </param>
             <param name="gapped|use_gapped" value="true" />
 
+            <output name="output_log">
+                <assert_contents>
+                    <has_text text="done." />
+                </assert_contents>
+            </output>
+
             <!-- catalog -->
             <output name="catalogtags">
                 <assert_contents>