diff meme_chip.xml @ 8:81c0806236ef draft

Uploaded
author iuc
date Thu, 12 Jul 2018 08:48:01 -0400
parents c321ab02c2a0
children 4fc125833bc2
line wrap: on
line diff
--- a/meme_chip.xml	Fri Apr 20 09:03:24 2018 -0400
+++ b/meme_chip.xml	Thu Jul 12 08:48:01 2018 -0400
@@ -16,29 +16,27 @@
 $sequence_alphabet
 -o '$output.files_path'
 #if str($options_type_cond.options_type)=='advanced':
-    ## FIXME: CentriMo cannot be run,  See the comments in the input section.
-    ## #set run_centrimo = $options_type_cond.run_centrimo_cond.run_centrimo
-    ## #if str($run_centrimo) == "yes":
-    ##     -db $options_type_cond.run_centrimo_cond.meme_motif_databases.fields.path
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_local:
-    ##         -centrimo-local
-    ##     #end if
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_score:
-    ##         -centrimo-score $options_type_cond.run_centrimo_cond.centrimo_score
-    ##     #end if
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_maxreg:
-    ##         -centrimo-maxreg $options_type_cond.run_centrimo_cond.centrimo_maxreg
-    ##     #end if
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_ethresh:
-    ##         -centrimo-ethresh $options_type_cond.run_centrimo_cond.centrimo_ethresh
-    ##     #end if
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_noseq:
-    ##         -centrimo-noseq
-    ##     #end if
-    ##     #if $options_type_cond.run_centrimo_cond.centrimo_flip:
-    ##         -centrimo-flip
-    ##     #end if
-    ## #end if
+    #if str($options_type_cond.run_centrimo_cond.run_centrimo) == "yes":
+        -db $options_type_cond.run_centrimo_cond.meme_motif_databases.fields.path
+        #if $options_type_cond.run_centrimo_cond.centrimo_local:
+            -centrimo-local
+        #end if
+        #if $options_type_cond.run_centrimo_cond.centrimo_score:
+            -centrimo-score $options_type_cond.run_centrimo_cond.centrimo_score
+        #end if
+        #if $options_type_cond.run_centrimo_cond.centrimo_maxreg:
+            -centrimo-maxreg $options_type_cond.run_centrimo_cond.centrimo_maxreg
+        #end if
+        #if $options_type_cond.run_centrimo_cond.centrimo_ethresh:
+            -centrimo-ethresh $options_type_cond.run_centrimo_cond.centrimo_ethresh
+        #end if
+        #if $options_type_cond.run_centrimo_cond.centrimo_noseq:
+            -centrimo-noseq
+        #end if
+        #if $options_type_cond.run_centrimo_cond.centrimo_flip:
+            -centrimo-flip
+        #end if
+    #end if
     $options_type_cond.search_given_strand
     -order $options_type_cond.background_model_order
     #if str($options_type_cond.subsampling_cond.subsampling) == "no":
@@ -98,23 +96,16 @@
             </param>
             <when value="basic"/>
             <when value="advanced">
-                <!--
-                FIXME: CentriMo cannot be run since the tool form cannot populate the mem_motif_database select list below.
                 <conditional name="run_centrimo_cond">
                     <param name="run_centrimo" type="select" label="Run TOMTOM and CentriMo?">
                         <option value="yes" selected="true">Yes</option>
                         <option value="no">No</option>
                     </param>
                     <when value="yes">
-
-                        We have 2 dynamic select lists here.  The first select list (meme_motif_database_dir) is populated from the meme_motif_databases
-                        data table.  The second select list (meme_motif_database) is dynamically re-rendered whenever the selection in the meme_motif_database_dir
-                        select list is changed.  This composition used to work (see Examples->Dynamic Options section of
-                        https://docs.galaxyproject.org/en/latest/dev/schema.html) but no longer does.  We'll have to figure out what is broken in
-                        the dynamic options code in ~/parameters/basic.py in order to uncomment this block.
-
                         <param name="meme_motif_database_dir" type="select" label="Select the motifs (DNA)" refresh_on_change="True">
                             <options from_data_table="meme_motif_databases">
+                                <column name="name" index="1"/>
+                                <column name="value" index="2"/>
                                 <filter type="sort_by" column="1"/>
                                 <validator type="no_options" message="No MEME motif databases are available for the selected input"/>
                             </options>
@@ -129,7 +120,6 @@
                     </when>
                     <when value="no"/>
                 </conditional>
-                -->
                 <param name="background_model_order" type="select" label="Select the order of the Markov background model">
                     <option value="0">0-order model of sequences</option>
                     <option value="1" selected="True">1st order model of sequences</option>