diff dist.shared.xml @ 3:3257183be791 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 4648c7574a78601e03ae6a318cbcd5b492a8a9f4
author iuc
date Wed, 14 Feb 2018 09:49:21 -0500
parents 566e0fba8f4b
children 7c8b0d0d792a
line wrap: on
line diff
--- a/dist.shared.xml	Tue Sep 05 16:12:57 2017 -0400
+++ b/dist.shared.xml	Wed Feb 14 09:49:21 2018 -0500
@@ -7,34 +7,36 @@
     <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 'dist.shared(
-            shared=otu.dat,
-            #if $label:
-                label=${ str($label).replace(",","-") },
-            #end if
-            #if $groups:
-                groups=${ str($groups).replace(",","-") },
-            #end if
-            #if $calc:
-                calc=${ str($calc).replace(",","-") },
-            #end if
-            #if $subsampling.use == "yes":
-                #if $subsampling.subsample:
-                    subsample=$subsampling.subsample,
-                #end if
-                iters=$subsampling.iters,
-            #end if
-            output=$output,
-            processors='\${GALAXY_SLOTS:-8}'
-        )'
-        | sed 's/ //g'  ## mothur trips over whitespace
-        | mothur
-        | tee mothur.out.log
+echo 'dist.shared(
+    shared=otu.dat,
+    #if $label:
+        label=${ str($label).replace(",","-") },
+    #end if
+    #if $groups:
+        groups=${ str($groups).replace(",","-") },
+    #end if
+    #if $calc:
+        calc=${ str($calc).replace(",","-") },
+    #end if
+    #if $subsampling.use == "yes":
+        #if $subsampling.subsample:
+            subsample=$subsampling.subsample,
+        #else
+            subsample=T,
+        #end if
+        iters=$subsampling.iters,
+    #end if
+    output=$output,
+    processors='\${GALAXY_SLOTS:-8}'
+)'
+| sed 's/ //g'  ## mothur trips over whitespace
+| mothur
+| tee mothur.out.log
     ]]></command>
     <inputs>
         <param name="otu" type="data" format="mothur.shared" label="shared - OTU Shared"/>
@@ -58,7 +60,8 @@
                 <option value="yes">yes</option>
             </param>
             <when value="yes">
-                <param name="subsample" type="integer" value="" min="0" optional="true" label="subsample (defaults to the size of the smallest group)" help="Should not exceed the number of sequences in any group"/>
+                <param name="subsample" type="integer" value="" min="0" optional="true" label="subsample (defaults to the size of the smallest group)"
+                    help="Should not exceed the number of sequences in any group"/>
                 <param name="iters" type="integer" value="1000" min="1" optional="true" label="iters - Number of iterations to try (default 1000)"/>
             </when>
             <when value="no"/>
@@ -92,12 +95,10 @@
             </output_collection>
             <expand macro="logfile-test"/>
         </test>
-        <test><!-- test with subsampling -->
+        <test><!-- test with subsampling without specifying size -->
             <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/>
+            <param name="label" value="0.03,0.33"/>
             <param name="use" value="yes"/>
-            <param name="subsample" value="10"/>
-            <param name="iters" value="42"/>
-            <param name="label" value="0.03,0.33"/>
             <param name="calc" value="canberra"/>
             <param name="output" value="square"/>
             <output_collection name="distfiles" count="6">
@@ -110,9 +111,26 @@
             </output_collection>
             <expand macro="logfile-test"/>
         </test>
+        <test><!-- test with subsampling with specifying size-->
+            <param name="otu" value="amazon.mothur.shared" ftype="mothur.shared"/>
+            <param name="use" value="yes"/>
+            <param name="subsample" value="2"/>
+            <param name="iters" value="42"/>
+            <param name="label" value="0.10"/>
+            <param name="calc" value="canberra"/>
+            <param name="output" value="square"/>
+            <output_collection name="distfiles" count="3">
+                <element name="canberra.0.10.square.std" ftype="mothur.dist">
+                    <assert_contents>
+                        <has_text text="forest"/>
+                        <has_text text="pasture"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <expand macro="logfile-test"/>
+        </test>
     </tests>
-    <help>
-<![CDATA[
+    <help><![CDATA[
 
 @MOTHUR_OVERVIEW@
 
@@ -126,7 +144,6 @@
 
 v1.26.0: Updated to Mothur 1.33. Omitted calculators since they do not appear to be available.
 
-]]>
-    </help>
+    ]]></help>
     <expand macro="citations"/>
 </tool>