Mercurial > repos > leomrtns > checkm_lineage_wf
comparison plot_macros.xml @ 0:cb30bd36bfd0 draft default tip
planemo upload
author | leomrtns |
---|---|
date | Wed, 02 Oct 2019 10:51:58 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cb30bd36bfd0 |
---|---|
1 <macros> | |
2 <token name="@plot_need_qa_headtoken@"> | |
3 </token> | |
4 <xml name="plot_need_qa_outmacro"> | |
5 </xml> | |
6 <token name="@plot_need_qa_token@"> | |
7 '$out_folder.extra_files_path' | |
8 </token> | |
9 <xml name="plot_need_qa_macro"> | |
10 <param name="out_folder" type="data" format="tabular" label="output of qa command" /> | |
11 </xml> | |
12 <token name="@plot_headtoken@"> | |
13 mkdir bin_folder && | |
14 #for $k, $f in enumerate($bin_folder) | |
15 #if $f | |
16 ln -s "${f}" bin_folder\/${k}.fna && | |
17 #end if | |
18 #end for && | |
19 | |
20 mkdir plot_folder && | |
21 | |
22 </token> | |
23 <xml name="plot_outmacro"> | |
24 <collection name="plot_folder" type="list" label="${tool.name} on ${on_string} (plots)"> | |
25 <discover_datasets pattern="__name_and_ext__" directory="plot_folder" /> | |
26 </collection> | |
27 </xml> | |
28 <token name="@plot_token@"> | |
29 bin_folder | |
30 plot_folder | |
31 #if $image_type and $image_type is not None: | |
32 --image_type $image_type | |
33 #end if | |
34 #if $dpi and $dpi is not None: | |
35 --dpi $dpi | |
36 #end if | |
37 #if $font_size and $font_size is not None: | |
38 --font_size $font_size | |
39 #end if | |
40 </token> | |
41 <xml name="plot_macro"> | |
42 <param name="bin_folder" type="data" label="bins" multiple="true" format="fasta"/> | |
43 | |
44 <param argument="--image_type" label="desired image type" name="image_type" optional="true" type="select"> | |
45 <option value="eps">eps</option> | |
46 <option value="pdf">pdf</option> | |
47 <option selected="true" value="png">png</option> | |
48 <option value="ps">ps</option> | |
49 <option value="svg">svg</option> | |
50 </param> | |
51 <param argument="--dpi" label="desired DPI of output image" name="dpi" optional="true" type="integer" value="600"/> | |
52 <param argument="--font_size" label="Desired font size" name="font_size" optional="true" type="integer" value="8"/> | |
53 </xml> | |
54 <token name="@plot_single_headtoken@"> | |
55 </token> | |
56 <xml name="plot_single_outmacro"> | |
57 </xml> | |
58 <token name="@plot_single_token@"> | |
59 #if $width and $width is not None: | |
60 --width $width | |
61 #end if | |
62 #if $height and $height is not None: | |
63 --height $height | |
64 #end if | |
65 </token> | |
66 <xml name="plot_single_macro"> | |
67 <param argument="--width" label="width of output image" name="width" optional="true" type="float" value="6.5"/> | |
68 <param argument="--height" label="height of output image" name="height" optional="true" type="float" value="6.5"/> | |
69 </xml> | |
70 <token name="@plot_double_headtoken@"> | |
71 </token> | |
72 <xml name="plot_double_outmacro"> | |
73 </xml> | |
74 <token name="@plot_double_token@"> | |
75 #if $width and $width is not None: | |
76 --width $width | |
77 #end if | |
78 #if $height and $height is not None: | |
79 --height $height | |
80 #end if | |
81 </token> | |
82 <xml name="plot_double_macro"> | |
83 <param argument="--width" label="width of output image" name="width" optional="true" type="float" value="6.5"/> | |
84 <param argument="--height" label="height of output image" name="height" optional="true" type="float" value="3.5"/> | |
85 </xml> | |
86 <token name="@plot_rows_headtoken@"> | |
87 </token> | |
88 <xml name="plot_rows_outmacro"> | |
89 </xml> | |
90 <token name="@plot_rows_token@"> | |
91 #if $width and $width is not None: | |
92 --width $width | |
93 #end if | |
94 #if $row_height and $row_height is not None: | |
95 --row_height $row_height | |
96 #end if | |
97 </token> | |
98 <xml name="plot_rows_macro"> | |
99 <param argument="--width" label="width of output image" name="width" optional="true" type="float" value="6.5"/> | |
100 <param argument="--row_height" label="height of each row in the output image" name="row_height" optional="true" type="float" value="0.3"/> | |
101 </xml> | |
102 </macros> |