changeset 2:d892b30d5492 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 05fb8d8428ce9bc84837bb4043018ab2135f5727-dirty"
author dfornika
date Mon, 24 Feb 2020 18:03:59 +0000
parents af86557c1b87
children 2cbda85de1a2
files data_manager/mash_sketch_builder.xml
diffstat 1 files changed, 20 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/mash_sketch_builder.xml	Sat Feb 22 01:01:25 2020 +0000
+++ b/data_manager/mash_sketch_builder.xml	Mon Feb 24 18:03:59 2020 +0000
@@ -10,15 +10,31 @@
     <![CDATA[
         python '$__tool_directory__/mash_sketch_builder.py'
           '${out_file}'
-          --fasta '${all_fasta_source.fields.path}'
+          #if str( $input_sequence_source.input_sequence_source_selector ) == "tool_data_table":
+            --fasta '${input_sequence_source.input_sequence.fields.path}'
+          #elif str( $input_sequence_source.input_sequence_source_selector ) == 'history':
+            --fasta '${input_sequence_source.input_sequence}'
+          #end if
           --sketch-size '${sketch_size}'
           --kmer-size '${kmer_size}'
     ]]>
     </command>
     <inputs>
-        <param name="all_fasta_source" type="select" label="Source FASTA Sequence">
-            <options from_data_table="all_fasta"/>
-        </param>
+        <conditional name="input_sequence_source">
+            <param name="input_sequence_source_selector" type="select"
+                   label="Select a sequence from your history or use one from a tool data table?">
+                <option value="tool_data_table">Sequence from tool data table</option>
+                <option value="history">Sequence from history</option>
+            </param>
+            <when value="tool_data_table">
+                <param name="input_sequence" type="select" label="Source FASTA Sequence">
+                    <options from_data_table="all_fasta"/>
+                </param>
+            </when>
+            <when value="history">
+                <param name="input_sequence" type="data" format="tabular" label="Input sequence" help=""/>
+            </when>
+        </conditional>
         <param type="integer" name="sketch_size" value="1000" min="10" max="1000000" label="Sketch size" />
         <param type="integer" name="kmer_size" value="21" min="1" max="32" label="kmer size" />
     </inputs>