changeset 12:61e2768506c1 draft

planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df-dirty
author yating-l
date Thu, 11 May 2017 18:43:34 -0400
parents 9aad7a2258e5
children 42f1509f3d5a
files blat.xml
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/blat.xml	Wed Apr 12 12:24:53 2017 -0400
+++ b/blat.xml	Thu May 11 18:43:34 2017 -0400
@@ -18,7 +18,22 @@
     && sort -k 10,10 -k 12,12n output > '${output_sorted}'
 ]]></command>
       <inputs>
-            <param type="data" name="database" format="fasta" />
+            <conditional name="reference_source">
+                  <param name="reference_source_selector" type="select" label="Choose the source for the database">
+                        <option value="cached">Locally cached</option>
+                        <option value="history">History</option>
+                  </param>
+                  <when value="cached">
+                        <param name="database" type="select" label="Select database">
+                              <options from_data_table="all_fasta">
+                              </options>
+                              <validator type="no_options" message="A built-in database is not available" />
+                        </param>
+                  </when>
+                  <when value="history">
+                        <param name="database" type="data" format="fasta" label="Using database file" />
+                  </when>
+            </conditional>
             <param type="data" name="query" format="fasta" />
             <param type="select" name="database_type" format="text" multiple="false" label="database type" help="Choose your database type, the default is dnax" argument="-t">
                   <option value="dna">dna - DNA sequence</option>