annotate macros.xml @ 5:aa35ee7f3ab2 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit c1fda24943cf04866d408133ffb6aabf4a90866b"
author iuc
date Mon, 05 Oct 2020 20:15:16 +0000
parents af7e416d8176
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
1 <macros>
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 3
diff changeset
2 <token name="@TOOL_VERSION@">2.1.5</token>
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
3 <xml name="requirements">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
4 <requirements>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
5 <requirement type="package" version="@TOOL_VERSION@">lofreq</requirement>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
6 <yield/>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
7 </requirements>
4
af7e416d8176 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 841c48994eb214a2f8718b1d1aca22bc38598528"
iuc
parents: 3
diff changeset
8 <version_command>lofreq version | grep version | cut -d ' ' -f 2</version_command>
0
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
9 </xml>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
10 <xml name="citations">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
11 <citations>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
12 <citation type="doi">10.1093/nar/gks918</citation>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
13 <yield />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
14 </citations>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
15 </xml>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
16 <token name="@PREPARE_REF@"><![CDATA[
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
17 #if str($reference_source.ref_selector) == 'history':
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
18 #set $reference_fasta_fn = 'reference.fa'
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
19 ln -s '$reference_source.ref' $reference_fasta_fn &&
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
20 lofreq faidx $reference_fasta_fn 2>&1 || echo "Error running samtools faidx for indexing fasta reference for lofreq" >&2 &&
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
21 #else
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
22 #set $reference_fasta_fn = str($reference_source.ref.fields.path)
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
23 #end if
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
24 ]]></token>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
25 <xml name="reference_interface">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
26 <conditional name="reference_source">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
27 <param name="ref_selector" type="select"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
28 label="Choose the source for the reference genome">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
29 <option value="cached">Locally cached</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
30 <option value="history">History</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
31 </param>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
32 <when value="cached">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
33 <param argument="--ref" type="select"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
34 label="Reference genome">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
35 <options from_data_table="fasta_indexes">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
36 <filter type="data_meta" column="dbkey" key="dbkey" ref="reads" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
37 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
38 </options>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
39 </param>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
40 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
41 <when value="history">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
42 <param argument="--ref" type="data" format="fasta" label="Reference" help="Reference sequence" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
43 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
44 </conditional>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
45 </xml>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
46 <xml name="handle_existing_alnqual">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
47 <conditional name="alnqual_choice">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
48 <param name="alnquals_to_use" type="select"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
49 label="Use the following alignment quality scores">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
50 <option value="">Base and indel alignment qualities (BAQ and IDAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
51 <option value="-A">Only base alignment qualities (BAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
52 <option value="-B">Only indel alignment qualities (IDAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
53 </param>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
54 <when value="-B">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
55 <param name="extended_baq" type="hidden" value="" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
56 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
57 <when value="">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
58 <param argument="-e" name="extended_baq" type="boolean" checked="true" truevalue="" falsevalue="-e"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
59 label="If BAQ needs to be computed, calculate extended BAQ?" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
60 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
61 <when value="-A">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
62 <param argument="-e" name="extended_baq" type="boolean" checked="true" truevalue="" falsevalue="-e"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
63 label="If BAQ needs to be computed, calculate extended BAQ?" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
64 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
65 </conditional>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
66 </xml>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
67 <xml name="handle_alnqual" token_mode="Use">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
68 <conditional name="alnqual_choice">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
69 <param name="alnquals_to_use" type="select"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
70 label="@MODE@ the following alignment quality scores">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
71 <option value="">Base and indel alignment qualities (BAQ and IDAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
72 <option value="-A">Only base alignment qualities (BAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
73 <option value="-B">Only indel alignment qualities (IDAQ)</option>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
74 </param>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
75 <when value="-B">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
76 <param name="extended_baq" type="hidden" value="" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
77 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
78 <when value="">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
79 <param argument="-e" name="extended_baq" type="boolean" checked="true" truevalue="" falsevalue="-e"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
80 label="Use extended BAQ?" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
81 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
82 <when value="-A">
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
83 <param argument="-e" name="extended_baq" type="boolean" checked="true" truevalue="" falsevalue="-e"
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
84 label="Use extended BAQ?" />
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
85 </when>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
86 </conditional>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
87 </xml>
33a416e1659e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/lofreq commit 9efcb813ab17041c7f5aad834dfff45bd7046c60"
iuc
parents:
diff changeset
88 </macros>