diff collect.single.xml @ 2:287b6646d047 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author iuc
date Tue, 20 Mar 2018 22:25:10 -0400
parents 5996c4d331bc
children 7f212a2a4a3b
line wrap: on
line diff
--- a/collect.single.xml	Tue Sep 05 17:09:19 2017 -0400
+++ b/collect.single.xml	Tue Mar 20 22:25:10 2018 -0400
@@ -7,32 +7,32 @@
     <expand macro="stdio"/>
     <expand macro="version_command"/>
     <command><![CDATA[
-        @SHELL_OPTIONS@
+@SHELL_OPTIONS@
 
-        ## create symlinks to input datasets
-        ln -s "$otu" otu.dat &&
+## create symlinks to input datasets
+ln -s '$otu' otu.dat &&
 
-        echo 'collect.single(
-            #if $otu.is_of_type("mothur.rabund"):
-                rabund=otu.dat,
-            #elif $otu.is_of_type("mothur.sabund"):
-                sabund=otu.dat,
-            #elif $otu.is_of_type("mothur.shared"):
-                shared=otu.dat,
-            #elif $otu.is_of_type("mothur.list"):
-                list=otu.dat,
-            #end if
-            #if $label:
-                label=${ str($label).replace(",","-") },
-            #end if
-            calc=${ str($calc).replace(",","-") },
-            abund=$abund,
-            freq=$freq
-        )'
-        | sed 's/ //g'  ## mothur trips over whitespace
-        | mothur
-        | tee mothur.out.log
-        && rm otu.dat  ## don't want this collected into datacollection
+echo 'collect.single(
+    #if $otu.is_of_type("mothur.rabund"):
+        rabund=otu.dat,
+    #elif $otu.is_of_type("mothur.sabund"):
+        sabund=otu.dat,
+    #elif $otu.is_of_type("mothur.shared"):
+        shared=otu.dat,
+    #elif $otu.is_of_type("mothur.list"):
+        list=otu.dat,
+    #end if
+    #if $label:
+        label=${ str($label).replace(",","-") },
+    #end if
+    calc=${ str($calc).replace(",","-") },
+    abund=$abund,
+    freq=$freq
+)'
+| sed 's/ //g'  ## mothur trips over whitespace
+| mothur
+| tee mothur.out.log
+&& rm otu.dat  ## don't want this collected into datacollection
     ]]></command>
     <inputs>
         <param name="otu" type="data" format="mothur.list,mothur.rabund,mothur.sabund,mothur.shared" label="list,rabund,sabund,shared - OTU List"/>
@@ -67,7 +67,9 @@
             <option value="nseqs">nseqs - Utility the number of sequences in a sample</option>
         </param>
         <param name="abund" type="integer" value="10" min="0" label="abund - ACE Estimator threshold for abundant versus rare OTUs (default 10)"/>
-        <param name="freq" type="float" value="100" min="0" label="freq - frequency for output (default is every 100 sequences)" help="Use a decimal between 0 and 1 to set the frequency as a percentage of the number of sequences"/>
+        <param name="freq" type="float" value="100" min="0" label="freq - frequency for output (default is every 100 sequences)"
+            help="Use a decimal between 0 and 1 to set the frequency as a percentage of the number of sequences"/>
+        <expand macro="param-savelog"/>
     </inputs>
     <outputs>
         <expand macro="logfile-output"/>
@@ -81,6 +83,7 @@
             <output_collection name="calcfiles" count="7">
                 <element name="shannon" md5="0a9c8a52f89898c3b7b7b2dfa24a4521" ftype="tabular"/>
             </output_collection>
+            <param name="savelog" value="true"/>
             <expand macro="logfile-test"/>
         </test>
         <test><!-- test with label select and all calculators -->
@@ -90,11 +93,11 @@
             <output_collection name="calcfiles" count="25">
                 <element name="bstick" md5="a38d430c52768efca597e5b41fc1d84b" ftype="tabular"/>
             </output_collection>
+            <param name="savelog" value="true"/>
             <expand macro="logfile-test"/>
         </test>
     </tests>
-    <help>
-<![CDATA[
+    <help><![CDATA[
 
 @MOTHUR_OVERVIEW@
 
@@ -105,7 +108,7 @@
 
 .. _calculators: https://www.mothur.org/wiki/Calculators
 .. _collect.single: https://www.mothur.org/wiki/Collect.single
-]]>
-    </help>
+
+    ]]></help>
     <expand macro="citations"/>
 </tool>