comparison macros.xml @ 0:8b48a608f1df draft

"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
author guerler
date Tue, 23 Mar 2021 23:06:15 +0000
parents
children c1dff5c2a7b3
comparison
equal deleted inserted replaced
-1:000000000000 0:8b48a608f1df
1 <macros>
2 <xml name="requirements">
3 <requirements>
4 <requirement type="package" version="0.1">ffindex-dbkit</requirement>
5 <yield />
6 </requirements>
7 </xml>
8 <xml name="ffindex_single_inputs">
9 <param name="ffdata" type="data" format="ffdata" label="PDB Database" help="Database Data file." />
10 <param name="ffindex" type="data" format="ffindex" label="PDB Database Index" help="Database Index file." />
11 </xml>
12
13 <xml name="citations">
14 <citations>
15 <!--citation type="doi">10.1021/ci300579r</citation-->
16 </citations>
17 </xml>
18 <xml name="logfile">
19 <param name="logfile" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Output log file" />
20 </xml>
21
22 <xml name="db_source">
23 <conditional name="db_source">
24 <param name="db_source_selector" type="select" label="Custom or built-in ffindex" help="Built-ins have been indexed using ffindex">
25 <option value="indexed" selected="true">Use a built-in index</option>
26 <option value="history">Use a ffindex from history</option>
27 </param>
28 <when value="indexed">
29 <param name="ffindex" type="select" label="Select ffindex" help="">
30 <options from_data_table="ffindex_indices">
31 <filter type="sort_by" column="0" />
32 <validator type="no_options" message="No indices are available" />
33 </options>
34 </param>
35 </when>
36 <when value="history">
37 <expand macro="ffindex_single_inputs" />
38 </when>
39 </conditional>
40 </xml>
41 <xml name="db_source2">
42 <conditional name="db_source2">
43 <param name="db_source_selector" type="select" label="Custom or built-in ffindex" help="Built-ins have been indexed using ffindex">
44 <option value="indexed" selected="true">Use a built-in index</option>
45 <option value="history">Use a ffindex from history</option>
46 </param>
47 <when value="indexed">
48 <param name="ffindex" type="select" label="Select ffindex" help="">
49 <options from_data_table="ffindex_indices">
50 <filter type="sort_by" column="0" />
51 <validator type="no_options" message="No indices are available" />
52 </options>
53 </param>
54 </when>
55 <when value="history">
56 <expand macro="ffindex_single_inputs" />
57 </when>
58 </conditional>
59 </xml>
60
61 <token name="@db_source@">
62 #if $db_source.db_source_selector == 'indexed':
63 -d '${db_source.ffindex.fields.path}.ffdata'
64 -i '${db_source.ffindex.fields.path}.ffindex'
65 #else
66 -d '$db_source.ffdata'
67 -i '$db_source.ffindex'
68 #end if
69 </token>
70 <token name="@db_source2@">
71 #if $db_source.db_source_selector == 'indexed':
72 -sd '${db_source.ffindex.fields.path}.ffdata'
73 -si '${db_source.ffindex.fields.path}.ffindex'
74 #else
75 -sd '$db_source.ffdata'
76 -si '$db_source.ffindex'
77 #end if
78 </token>
79 </macros>