diff pyGenomeTracks.xml @ 14:59fd173ac850 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit b0607963d6cf57fef81c5468e0af914430e7d35b
author iuc
date Fri, 26 May 2023 07:54:55 +0000
parents 360df4999907
children 36b848d5f3ec
line wrap: on
line diff
--- a/pyGenomeTracks.xml	Tue Mar 28 10:48:50 2023 +0000
+++ b/pyGenomeTracks.xml	Fri May 26 07:54:55 2023 +0000
@@ -188,6 +188,14 @@
 color = bed_rgb
       #elif $track.track_file_style_conditional.color_bed.color:
 color = $track.track_file_style_conditional.color_bed.color
+        #if $track.track_file_style_conditional.color_bed.color_bed_select == "colormap":
+          #if str($track.track_file_style_conditional.color_bed.min_value) != '':
+min_value = $track.track_file_style_conditional.color_bed.min_value
+          #end if
+          #if str($track.track_file_style_conditional.color_bed.max_value) != '':
+max_value = $track.track_file_style_conditional.color_bed.max_value
+          #end if
+        #end if
       #end if
       #if $track.track_file_style_conditional.border_color_bed.border_color_bed_select == 'manually':
 border_color = $track.track_file_style_conditional.border_color_bed.color
@@ -230,6 +238,14 @@
 color = bed_rgb
       #elif $track.track_file_style_conditional.color_bed.color:
 color = $track.track_file_style_conditional.color_bed.color
+        #if $track.track_file_style_conditional.color_bed.color_bed_select == "colormap":
+          #if str($track.track_file_style_conditional.color_bed.min_value) != '':
+min_value = $track.track_file_style_conditional.color_bed.min_value
+          #end if
+          #if str($track.track_file_style_conditional.color_bed.max_value) != '':
+max_value = $track.track_file_style_conditional.color_bed.max_value
+          #end if
+        #end if
       #end if
       #if $track.track_file_style_conditional.border_color_bed.border_color_bed_select == 'manually':
 border_color = $track.track_file_style_conditional.border_color_bed.color
@@ -305,47 +321,49 @@
 
   ## Link
   #if $track.track_file_style_conditional.track_file_style_selector == "link_track_option":
-[links_$counter]
-file = $track.track_file_style_conditional.track_input_link
-    #if $track.track_file_style_conditional.title:
+    #for $counter_link, $data_link in enumerate($track.track_file_style_conditional.track_input_link):
+[links_${counter}_${counter_link}]
+file = $data_link
+      #if $track.track_file_style_conditional.title:
 title = $track.track_file_style_conditional.title
-    #elif $track.track_file_style_conditional.overlay_select == 'no':
-title = $track.track_file_style_conditional.track_input_link.element_identifier
-    #end if
-    #if $track.track_file_style_conditional.height:
+      #elif $track.track_file_style_conditional.overlay_select == 'no':
+title = $data_link.element_identifier
+      #end if
+      #if $track.track_file_style_conditional.height:
 height = $track.track_file_style_conditional.height
-    #end if
-    #if $track.track_file_style_conditional.min_value != "":
+      #end if
+      #if $track.track_file_style_conditional.min_value != "":
 min_value = $track.track_file_style_conditional.min_value
-    #end if
-    #if $track.track_file_style_conditional.max_value != "":
+      #end if
+      #if $track.track_file_style_conditional.max_value != "":
 max_value = $track.track_file_style_conditional.max_value
-    #end if
+      #end if
 color = $track.track_file_style_conditional.color_link.color
 alpha = $track.track_file_style_conditional.alpha
 line_width = $track.track_file_style_conditional.line_width
 line_style = $track.track_file_style_conditional.line_style
 links_type = $track.track_file_style_conditional.display.links_type
-    #if $track.track_file_style_conditional.display.links_type in ['arcs', 'triangles']:
+      #if $track.track_file_style_conditional.display.links_type in ['arcs', 'triangles']:
 compact_arcs_level = $track.track_file_style_conditional.display.compact_arcs_level
 use_middle = $track.track_file_style_conditional.display.use_middle
-    #end if
-    #if $track.track_file_style_conditional.display.links_type != 'squares' and $track.track_file_style_conditional.display.ylim != "":
+      #end if
+      #if $track.track_file_style_conditional.display.links_type != 'squares' and $track.track_file_style_conditional.display.ylim != "":
 ylim = $track.track_file_style_conditional.display.ylim
-    #end if
-    #if $track.track_file_style_conditional.display.links_type == 'squares' and $track.track_file_style_conditional.display.region2 != "":
+      #end if
+      #if $track.track_file_style_conditional.display.links_type == 'squares' and $track.track_file_style_conditional.display.region2 != "":
 region2 = $track.track_file_style_conditional.display.region2
-    #end if
-    #if $track.track_file_style_conditional.invert_orientation:
+      #end if
+      #if $track.track_file_style_conditional.invert_orientation:
 orientation = inverted
-    #end if
+      #end if
 overlay_previous = $track.track_file_style_conditional.overlay_select
 file_type = links
-    ## If spacer is asked a new section is created:
-    #if $track.track_file_style_conditional.spacer_height != "":
+      ## If spacer is asked a new section is created:
+      #if $track.track_file_style_conditional.spacer_height != "":
 [spacer]
 height = $track.track_file_style_conditional.spacer_height
-    #end if
+      #end if
+    #end for
   #end if
 
   ## Narrow peak
@@ -889,6 +907,7 @@
                                 <option value="viridis">viridis</option>
                                 <expand macro="colormap_macro_noRdYlBu_r_noViridis" />
                             </param>
+                            <expand macro="minmax_macro" />
                         </when>
                     </conditional>
                     <expand macro="border_color_bed_macro" />
@@ -919,6 +938,7 @@
                                 <option value="viridis">viridis</option>
                                 <expand macro="colormap_macro_noRdYlBu_r_noViridis" />
                             </param>
+                            <expand macro="minmax_macro" />
                         </when>
                     </conditional>
                     <expand macro="border_color_bed_macro" />
@@ -1748,6 +1768,8 @@
                     <conditional name="color_bed">
                         <param name="color_bed_select" value="colormap" />
                         <param name="color" value="RdYlBu_r" />
+                        <param name="min_value" value="0" />
+                        <param name="max_value" value="2" />
                     </conditional>
                 </conditional>
             </repeat>
@@ -2428,7 +2450,7 @@
             <repeat name="tracks">
                 <conditional name="track_file_style_conditional">
                     <param name="track_file_style_selector" value="link_track_option" />
-                    <param name="track_input_link" value="test.arcs" ftype="bed" />
+                    <param name="track_input_link" value="test.arcs,test.arcs" ftype="bed" />
                     <param name="title" value="highly compacted" />
                     <conditional name="color_link">
                         <param name="color_link_select" value="manually" />