diff ete_lineage_generator.xml @ 6:f1eca1158f21 draft

planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/ete commit 133bb57feca9672734d664e6b34e428488cf2e73
author earlhaminst
date Wed, 10 Oct 2018 05:24:04 -0400
parents 87b6de3ef63e
children 2db72467da51
line wrap: on
line diff
--- a/ete_lineage_generator.xml	Thu May 10 06:15:17 2018 -0400
+++ b/ete_lineage_generator.xml	Wed Oct 10 05:24:04 2018 -0400
@@ -20,6 +20,7 @@
     $compresscond.compress
     $compresscond.lower
 #end if
+$includeid
     ]]></command>
     <inputs>
         <param name="speciesFile" type="data" format="txt" label="Species file" help="List with one species/taxid per line" />
@@ -68,17 +69,16 @@
         </conditional>
         <conditional name="compresscond">
             <param name="compress" type="select" label="Fill unnamed ranks" help="Fill unnamed ranks with super/sub ranks (see -l)">
-                <option value="-c">Yes</option>
+                <option value="-c" selected="True">Yes</option>
                 <option value="">No</option>
             </param>
             <when value="-c">
-                <param name="lower" type="select" label="Prefer lower ranks for filling" help="Prefer lower levels for filling">
-                    <option value="-l">Yes</option>
-                    <option value="">No</option>
-                </param>
+                <param name="lower" type="boolean" truevalue="-l" falsevalue="" checked="False" label="Prefer lower ranks" help="Take the next available lower rank (default: higher)"/> 
             </when>
             <when value="" />
         </conditional>
+        <param name="includeid" type="boolean" truevalue="--includeid" falsevalue="" label="Include taxid in the table"
+            help="For the case when the input consists of taxon names" />
     </inputs>
     <outputs>
         <data name="outputFile" format="tsv" label="${tool.name} on ${on_string}"/>
@@ -114,6 +114,12 @@
             <param name="manualranks" value="kingdom,family" />
             <output name="outputFile" file="lineage-full.txt" />
         </test>
+        <test>
+            <param name="speciesFile" ftype="txt" value="species.txt" />
+            <param name="database" ftype="sqlite" value="taxdump.sqlite" />
+            <param name="includeid" value="--includeid" />
+            <output name="outputFile" file="lineage-wid.txt" />
+        </test>
     </tests>
     <help><![CDATA[
 Generates a table with lineage information for a list of species (also taxids and arbitrary taxons are accepted) using the `ETE Toolkit`_.