annotate plot_macros.xml @ 0:cb30bd36bfd0 draft default tip

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