Mercurial > repos > eric-rasche > circos
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5:b25b3518c2ce | 6:169adf243c0a |
|---|---|
| 247 <rule> | 247 <rule> |
| 248 #for $condition in $rule.conditions | 248 #for $condition in $rule.conditions |
| 249 #set cond = $condition.application.application_select | 249 #set cond = $condition.application.application_select |
| 250 #if $cond == 'interchr' or $cond == 'intrachr' or $cond == 'inv' or $cond == 'rev' | 250 #if $cond == 'interchr' or $cond == 'intrachr' or $cond == 'inv' or $cond == 'rev' |
| 251 condition = var($cond) | 251 condition = var($cond) |
| 252 #elif $cond == 'always' | |
| 253 condition = 1 | |
| 252 #else | 254 #else |
| 253 #set op = $condition.application.comparison.compare | 255 #set op = $condition.application.comparison.compare |
| 254 #set val = $condition.application.comparison.compval | 256 #set val = $condition.application.comparison.compval |
| 255 #if $cond == 'chr' | 257 #if $cond == 'chr' |
| 256 #if $op == 'between' or $op == 'fromto' | 258 #if $op == 'between' or $op == 'fromto' |
| 276 | 278 |
| 277 #for $action in $rule.actions: | 279 #for $action in $rule.actions: |
| 278 #set actiontype = $action.action.action_select | 280 #set actiontype = $action.action.action_select |
| 279 #set actionval = $action.action.action_value | 281 #set actionval = $action.action.action_value |
| 280 #if $actiontype == 'color': | 282 #if $actiontype == 'color': |
| 281 #set actionval = $circosColor($actionval) | 283 #if $action.action.dynamic.dynamic_select == "static": |
| 284 #set actionval = $circosColor($actionval) | |
| 285 $actiontype = $actionval | |
| 286 #else | |
| 287 #set x_fill_color = $action.action.dynamic.action_value | |
| 288 #set x_fill_color_count = int(str($x_fill_color).split('-')[1]) + 1 | |
| 289 #set x_fill_color_qw = ' '.join(["%s-%s" % ($action.action.dynamic.action_value, $i) for i in range(1, $x_fill_color_count)]) | |
| 290 $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})]) | |
| 291 #end if | |
| 292 #else | |
| 293 $actiontype = $actionval | |
| 282 #end if | 294 #end if |
| 283 $actiontype = $actionval | |
| 284 #end for | 295 #end for |
| 285 | 296 |
| 286 $rule.continue_flow | 297 $rule.continue_flow |
| 287 | 298 |
| 288 </rule> | 299 </rule> |
