changeset 60:8baf6aa848d1 draft

Uploaded
author greg
date Tue, 19 Dec 2017 09:11:35 -0500
parents 1736d09a6927
children 5acfb82e4f44
files ideas_genome_tracks.xml
diffstat 1 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ideas_genome_tracks.xml	Mon Dec 18 09:09:00 2017 -0500
+++ b/ideas_genome_tracks.xml	Tue Dec 19 09:11:35 2017 -0500
@@ -20,6 +20,18 @@
     #set email = $__user__.email
 #end if
 #set input_dir_state = "input_dir_state"
+#set select_state_color = $select_state_color_cond.select_state_color
+#if str($select_state_color) == 'yes':
+    #set state_color_repeat = $select_state_color_cond.state_color_repeat
+    #set state_indexes = list()
+    #set state_colors = list()
+    #for items in $state_color_repeat:
+        $state_indexes.append($items.state_index)
+        $state_colors.append(str($items.state_color))
+    #end for
+    #set state_indexes = ",".join($state_indexes)
+    #set state_colors = ",".join($state_colors)
+#end if
 mkdir $input_dir_state &&
 mkdir '$output_trackhub.files_path' &&
 #for $i in $input:
@@ -44,6 +56,10 @@
 --output_trackhub_files_path '$output_trackhub.files_path'
 --output_trackhub_id '$__app__.security.encode_id($output_trackhub.id)'
 --short_label '$sanitized_short_label'
+#if str($select_state_color) == 'yes':
+    --state_indexes '$state_indexes'
+    --state_colors '$state_colors'
+#end if
 &>ideas_genome_tracks.log;
 if [[ $? -ne 0 ]]; then
     cp ideas_log.txt '$output_trackhub'
@@ -53,6 +69,21 @@
     <inputs>
         <param name="galaxy_url" type="baseurl" value="/"/>
         <param name="input" format="txt" type="data_collection" collection_type="list" label="IDEAS files"/>
+        <conditional name="select_state_color_cond">
+            <param name="select_state_color" type="select" label="Select colors for one or more states?">
+                <option value="no" selected="true">No</option>
+                <option value="yes">Yes</option>
+            </param>
+            <when value="no" />
+            <when value="yes">
+                <repeat name="state_color_repeat" title="State colors" min="1">
+                    <param name="state" type="integer" value="" min="1" label="State index" help="Enter the integer index of the desired state">
+                        <validator type="empty_field"/>
+                    </param>
+                    <param name="state_color" type="color" label="State color"/>
+                </repeat>
+            </when>
+        </conditional>
         <param name="hub_name" type="text" value="" label="Hub name" help="All white space characters will be eliminated">
             <validator type="empty_field"/>
         </param>