annotate macros.xml @ 0:8b48a608f1df draft

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