annotate macros.xml @ 0:ad4b7db26523 draft

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