comparison ks_distribution.xml @ 24:4cbeb43dc936 draft

Uploaded
author greg
date Mon, 26 Jun 2017 09:56:34 -0400
parents f3b7455d6c04
children 96e1400d3125
comparison
equal deleted inserted replaced
23:492ef68d73f7 24:4cbeb43dc936
7 <command detect_errors="exit_code"><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
8 #import json 8 #import json
9 Rscript $__tool_directory__/ks_distribution.R 9 Rscript $__tool_directory__/ks_distribution.R
10 -k '$input' 10 -k '$input'
11 -c '$components' 11 -c '$components'
12 -n $components.metadata.num_comp 12 -n $components.metadata.number_comp
13 -o '$output' 13 -o '$output'
14 #if str($choose_colors_cond.choose_colors) == 'yes': 14 #if str($choose_colors_cond.choose_colors) == 'yes':
15 #set ccs = list() 15 #set specified_colors = list()
16 #for $i in $choose_colors_cond.colors: 16 #for $selection in $choose_colors_cond.colors:
17 $ccs.append(str($i.color)) 17 $specified_colors.append(str($selection.color))
18 #end for 18 #end for
19 -r '#echo json.dumps(ccs)#' 19 -r '#echo json.dumps(specified_colors)#'
20 #end if 20 #end if
21 ]]></command> 21 ]]></command>
22 <inputs> 22 <inputs>
23 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" /> 23 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" />
24 <param name="components" format="ptkscmp" type="data" label="Significant components" /> 24 <param name="components" format="ptkscmp" type="data" label="Significant components" />
29 </param> 29 </param>
30 <when value="no" /> 30 <when value="no" />
31 <when value="yes"> 31 <when value="yes">
32 <repeat name="colors" title="Component colors" min="1"> 32 <repeat name="colors" title="Component colors" min="1">
33 <param name="color" type="select" label="Color"> 33 <param name="color" type="select" label="Color">
34 <expand macro="color_selector" /> 34 <option value="255,0,0" selected="True">red</option>
35 <option value="0,255,0">green</option>
36 <option value="0,0,255">blue</option>
37 <option value="255,255,0">yellow</option>
38 <option value="255,140,0">dark orange</option>
39 <option value="0,0,0">black</option>
35 </param> 40 </param>
36 </repeat> 41 </repeat>
37 </when> 42 </when>
38 </conditional> 43 </conditional>
39 </inputs> 44 </inputs>