Mercurial > repos > eric-rasche > circos
diff macros_conffiles.xml @ 6:169adf243c0a draft
planemo upload for repository https://github.com/TAMU-CPT/galaxy-circos-tool commit ee1fa2dab456c14a2538eb66033614e14a21a2ec
| author | eric-rasche |
|---|---|
| date | Sat, 10 Jun 2017 13:38:32 -0400 |
| parents | b25b3518c2ce |
| children | b72f2db6d417 |
line wrap: on
line diff
--- a/macros_conffiles.xml Sat Jun 10 12:55:28 2017 -0400 +++ b/macros_conffiles.xml Sat Jun 10 13:38:32 2017 -0400 @@ -249,6 +249,8 @@ #set cond = $condition.application.application_select #if $cond == 'interchr' or $cond == 'intrachr' or $cond == 'inv' or $cond == 'rev' condition = var($cond) + #elif $cond == 'always' + condition = 1 #else #set op = $condition.application.comparison.compare #set val = $condition.application.comparison.compval @@ -278,9 +280,18 @@ #set actiontype = $action.action.action_select #set actionval = $action.action.action_value #if $actiontype == 'color': - #set actionval = $circosColor($actionval) + #if $action.action.dynamic.dynamic_select == "static": + #set actionval = $circosColor($actionval) + $actiontype = $actionval + #else + #set x_fill_color = $action.action.dynamic.action_value + #set x_fill_color_count = int(str($x_fill_color).split('-')[1]) + 1 + #set x_fill_color_qw = ' '.join(["%s-%s" % ($action.action.dynamic.action_value, $i) for i in range(1, $x_fill_color_count)]) + $actiontype = eval(qw(${x_fill_color_qw})[remap_int(var(value), ${action.action.dynamic.min_value}, ${action.action.dynamic.max_value}, 0, ${x_fill_color_count - 1})]) + #end if + #else + $actiontype = $actionval #end if - $actiontype = $actionval #end for $rule.continue_flow
