diff clearcut.xml @ 3:959bd3b9fa75 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:07:05 -0400
parents 5c368b76eff7
children 20e764494303
line wrap: on
line diff
--- a/clearcut.xml	Fri Sep 08 14:45:25 2017 -0400
+++ b/clearcut.xml	Tue Mar 20 22:07:05 2018 -0400
@@ -7,37 +7,37 @@
     <expand macro="stdio"/>
     <expand macro="version_command"/>
     <command><![CDATA[
-        @SHELL_OPTIONS@
+@SHELL_OPTIONS@
 
-        ## create symlinks to input datasets
-        ln -s "$input.infile" input.infile.dat &&
+## create symlinks to input datasets
+ln -s '$input.infile' input.infile.dat &&
 
-        echo 'clearcut(
-            #if $input.source == "dna":
-                fasta=input.infile.dat,
-                DNA=true,
-            #elif $input.source == "aa":
-                fasta=input.infile.dat,
-                protein=true,
-            #elif $input.source == "phylip":
-                phylip=input.infile.dat,
-            #end if
-            #if $matrixout == "true":
-                matrixout=matrixout.dist,
-            #end if
-            #if $seed:
-                seed=$seed,
-            #end if
-            ntrees=$ntrees,
-            norandom=$norandom,
-            shuffle=$shuffle,
-            expblen=$expblen,
-            expdist=$expdist,
-            neighbor=$neighbor
-        )'
-        | sed 's/ //g'  ## mothur trips over whitespace
-        | mothur
-        | tee mothur.out.log
+echo 'clearcut(
+    #if $input.source == "dna":
+        fasta=input.infile.dat,
+        DNA=true,
+    #elif $input.source == "aa":
+        fasta=input.infile.dat,
+        protein=true,
+    #elif $input.source == "phylip":
+        phylip=input.infile.dat,
+    #end if
+    #if $matrixout == "true":
+        matrixout=matrixout.dist,
+    #end if
+    #if $seed:
+        seed=$seed,
+    #end if
+    ntrees=$ntrees,
+    norandom=$norandom,
+    shuffle=$shuffle,
+    expblen=$expblen,
+    expdist=$expdist,
+    neighbor=$neighbor
+)'
+| sed 's/ //g'  ## mothur trips over whitespace
+| mothur
+| tee mothur.out.log
     ]]></command>
     <inputs>
         <conditional name="input">
@@ -47,23 +47,24 @@
                 <option value="phylip">Phylip Distance Matrix</option>
             </param>
             <when value="dna">
-                <param name="infile" type="data" format="mothur.align" label="fasta - Alignment Fasta"/>
+                <param argument="fasta" name="infile" type="data" format="mothur.align" label="fasta - Alignment Fasta"/>
             </when>
             <when value="aa">
-                <param name="infile" type="data" format="mothur.align" label="fasta - Alignment Fasta"/>
+                <param argument="fasta" name="infile" type="data" format="mothur.align" label="fasta - Alignment Fasta"/>
             </when>
             <when value="phylip">
-                <param name="infile" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/>
+                <param argument="phylip" name="infile" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/>
             </when>
         </conditional>
-        <param name="seed" type="integer" value="" min="0" optional="true" label="seed - Set the PRNG seed to a specific value"/>
-        <param name="ntrees" type="integer" value="1" label="ntrees - the number of output trees you want clearcut to generate (default 1)"/>
-        <param name="norandom" type="boolean" checked="false" truevalue="true" falsevalue="false" label="norandom - Attempt joins deterministically"/>
-        <param name="shuffle" type="boolean" checked="false" truevalue="true" falsevalue="false" label="shuffle - Randomly shuffle the distance matrix"/>
-        <param name="neighbor" type="boolean" checked="true" truevalue="true" falsevalue="false" label="neighbor - Use traditional Neighbor-Joining algorithm"/>
-        <param name="expblen" type="boolean" checked="false" truevalue="ON" falsevalue="OFF" label="expblen - Use exponential notation for branch lengths"/>
-        <param name="expdist" type="boolean" checked="false" truevalue="ON" falsevalue="OFF" label="expdist - Use exponential notation for distance"/>
-        <param name="matrixout" type="boolean" checked="false" truevalue="true" falsevalue="false" label="matrixout - Generate a Distance Matrix"/>
+        <param argument="seed" type="integer" value="" min="0" optional="true" label="seed - Set the PRNG seed to a specific value"/>
+        <param argument="ntrees" type="integer" value="1" label="ntrees - the number of output trees you want clearcut to generate (default 1)"/>
+        <param argument="norandom" type="boolean" checked="false" truevalue="true" falsevalue="false" label="norandom - Attempt joins deterministically"/>
+        <param argument="shuffle" type="boolean" checked="false" truevalue="true" falsevalue="false" label="shuffle - Randomly shuffle the distance matrix"/>
+        <param argument="neighbor" type="boolean" checked="true" truevalue="true" falsevalue="false" label="neighbor - Use traditional Neighbor-Joining algorithm"/>
+        <param argument="expblen" type="boolean" checked="false" truevalue="ON" falsevalue="OFF" label="expblen - Use exponential notation for branch lengths"/>
+        <param argument="expdist" type="boolean" checked="false" truevalue="ON" falsevalue="OFF" label="expdist - Use exponential notation for distance"/>
+        <param argument="matrixout" type="boolean" checked="false" truevalue="true" falsevalue="false" label="matrixout - Generate a Distance Matrix"/>
+        <expand macro="param-savelog"/>
     </inputs>
     <outputs>
         <expand macro="logfile-output"/>
@@ -77,6 +78,7 @@
             <param name="source" value="phylip"/>
             <param name="infile" value="env.dist"/>
             <output name="tree" md5="9c78d54267a985c8ae37dcfbddf6f8d0"/>
+            <param name="savelog" value="true"/>
             <expand macro="logfile-test"/>
         </test>
         <test><!-- test with phylip and params set-->
@@ -95,6 +97,7 @@
                 </assert_contents>
             </output>
             <output name="matrix" md5="ebc0c296d46cbe4b8d50780b9f5f8314" ftype="mothur.lower.dist"/>
+            <param name="savelog" value="true"/>
             <expand macro="logfile-test"/>
         </test>
         <test><!-- test with fasta (dna) and matrixout-->
@@ -103,11 +106,11 @@
             <param name="matrixout" value="true"/>
             <output name="tree" md5="54ca5ad8aea6598f8ed03e0616b1b568"/>
             <output name="matrix" md5="1c9d7acbd2f1eaba31714cb659c521e8" ftype="mothur.lower.dist"/>
+            <param name="savelog" value="true"/>
             <expand macro="logfile-test"/>
         </test>
     </tests>
-    <help>
-<![CDATA[
+    <help><![CDATA[
 
 @MOTHUR_OVERVIEW@
 
@@ -125,7 +128,7 @@
 .. _clearcut: https://www.mothur.org/wiki/Clearcut
 
 v.1.20.0: Trivial upgrade to Mothur 1.33
-]]>
-    </help>
+
+    ]]></help>
     <expand macro="citations"/>
 </tool>