Mercurial > repos > p.lucas > diamond_using_binary
comparison macros.xml @ 67:863f523479d5 draft
Uploaded
author | p.lucas |
---|---|
date | Mon, 10 Jun 2024 13:18:41 +0000 |
parents | c07dbfd76866 |
children |
comparison
equal
deleted
inserted
replaced
66:80bd72a3b32c | 67:863f523479d5 |
---|---|
1 <macros> | |
2 <token name="@TOOL_VERSION@">2.1.9</token> | |
3 <token name="@VERSION_SUFFIX@">0</token> | |
4 | |
5 <xml name="stdio"> | |
6 <stdio> | |
7 <regex match="Failed to allocate" source="stderr" level="fatal_oom" /> | |
8 </stdio> | |
9 </xml> | |
10 | |
11 <xml name="version_command"> | |
12 <version_command>/usr/bin/diamond version | cut -d" " -f 3</version_command> | |
13 </xml> | |
14 | |
15 <xml name="output_type_macro"> | |
16 <conditional name="output"> | |
17 <param argument="--outfmt" type="select" label="Format of output file" help=""> | |
18 <option value="0">BLAST pairwise</option> | |
19 <option value="5">BLAST XML</option> | |
20 <option value="6">BLAST tabular</option> | |
21 <option value="100">DAA</option> | |
22 <option value="101">SAM</option> | |
23 <option value="102">Taxonomic classification</option> | |
24 </param> | |
25 <when value="0"/> | |
26 <when value="5"/> | |
27 <when value="6"> | |
28 <param name="fields" type="select" label="Tabular fields" help="" multiple="true"> | |
29 <option value="qseqid" selected="true">Query Seq - id</option> | |
30 <option value="sseqid" selected="true">Subject Seq - id</option> | |
31 <option value="sallseqid">All subject Seq - id(s)</option> | |
32 <option value="qlen">Query sequence length</option> | |
33 <option value="slen">Subject sequence length</option> | |
34 <option value="pident" selected="true">Percentage of identical matches</option> | |
35 <option value="length" selected="true">Alignment length</option> | |
36 <option value="nident">Number of identical matches</option> | |
37 <option value="mismatch" selected="true">Number of mismatches</option> | |
38 <option value="positive">Number of positive - scoring matches</option> | |
39 <option value="gapopen" selected="true">Number of gap openings</option> | |
40 <option value="gaps">Total number of gaps</option> | |
41 <option value="ppos">Percentage of positive - scoring matches</option> | |
42 <option value="qstart" selected="true">Start of alignment in query</option> | |
43 <option value="qend" selected="true">End of alignment in query</option> | |
44 <option value="sstart" selected="true">Start of alignment in subject</option> | |
45 <option value="send" selected="true">End of alignment in subject</option> | |
46 <option value="qseq">Aligned part of query sequence</option> | |
47 <option value="sseq">Aligned part of subject sequence</option> | |
48 <option value="qseq_translated">Translation of the aligned part of query sequence</option> | |
49 <option value="evalue" selected="true">Expect value</option> | |
50 <option value="bitscore" selected="true">Bit score</option> | |
51 <option value="score">Raw score</option> | |
52 <option value="qframe">Query frame</option> | |
53 <option value="btop">Blast traceback operations(BTOP)</option> | |
54 <option value="scovhsp">Subject coverage per HSP</option> | |
55 <option value="stitle">Subject Title</option> | |
56 <option value="salltitles">All Subject Title(s)</option> | |
57 <option value="qcovhsp">Query Coverage Per HSP</option> | |
58 <option value="qtitle">Query title</option> | |
59 <option value="full_qseq">Query sequence</option> | |
60 <option value="full_sseq">Subject sequence</option> | |
61 <option value="qqual">Query quality values for the aligned part of the query</option> | |
62 <option value="full_qqual">Query quality values</option> | |
63 <option value="qstrand">Query strand</option> | |
64 <option value="cigar">Cigar</option> | |
65 <yield/> | |
66 </param> | |
67 <param argument="--unal" type="boolean" label="Report unaligned queries" truevalue="1" falsevalue="0" checked="false"/> | |
68 </when> | |
69 <when value="100"> | |
70 <param argument="--salltitles" type="boolean" truevalue="--salltitles" falsevalue="" checked="true" label="Include full subject titles in DAA file?" help=""/> | |
71 <param argument="--sallseqid" type="boolean" truevalue="--sallseqid" falsevalue="" checked="true" label="Include all subject ids in DAA file?" help=""/> | |
72 </when> | |
73 <when value="101"> | |
74 <param argument="--salltitles" type="boolean" truevalue="--salltitles" falsevalue="" checked="true" label="Include full subject titles in DAA file?" help=""/> | |
75 <param argument="--sallseqid" type="boolean" truevalue="--sallseqid" falsevalue="" checked="true" label="Include all subject ids in DAA file?" help=""/> | |
76 </when> | |
77 <when value="102"/> | |
78 </conditional> | |
79 </xml> | |
80 | |
81 <xml name="hit_filter_macro"> | |
82 <conditional name="hit_filter"> | |
83 <param name="hit_filter_select" type="select" label="Method to restrict the number of hits?"> | |
84 <option value="max">Maximum number of target sequences</option> | |
85 <option value="top">Percentage of top alignment score</option> | |
86 </param> | |
87 <when value="max"> | |
88 <param name="max_target_seqs" argument="--max-target-seqs" type="integer" value="25" label="The maximum number of target sequences per query to report alignments for" | |
89 help="Setting this to 0 will report all alignments that were found." /> | |
90 </when> | |
91 <when value="top"> | |
92 <param argument="--top" type="integer" value="0" label="Keep alignments within the given percentage range of the top alignment score for a query" | |
93 help="For example, setting this to 10 will report all alignments whose score is at most 10% lower than the best alignment score for a query." /> | |
94 </when> | |
95 </conditional> | |
96 </xml> | |
97 | |
98 <xml name="block_size_low_sens"> | |
99 <param argument="--block-size" type="float" value="2" label="Block size in billions of sequence letters to be processed at a time" | |
100 help="This is the main parameter for controlling the program’s memory and disk space usage. Bigger numbers will increase the use of memory and temporary | |
101 disk space, but also improve performance" /> | |
102 </xml> | |
103 | |
104 <xml name="block_size_hi_sens"> | |
105 <param argument="--block-size" type="float" value="0.4" label="Block size in billions of sequence letters to be processed at a time" | |
106 help="This is the main parameter for controlling the program’s memory and disk space usage. Bigger numbers will increase the use of memory and temporary | |
107 disk space, but also improve performance" /> | |
108 </xml> | |
109 | |
110 <xml name="citations"> | |
111 <citations> | |
112 <citation type="doi">10.1038/nmeth.3176</citation> | |
113 </citations> | |
114 </xml> | |
115 | |
116 | |
117 <xml name="output_macro"> | |
118 <data format="txt" name="blast_pairw" label="${tool.name} on ${on_string}"> | |
119 <filter>output_section["output"]["outfmt"] == "0"</filter> | |
120 </data> | |
121 <data format="xml" name="blast_xml" label="${tool.name} on ${on_string}"> | |
122 <filter>output_section["output"]["outfmt"] == "5"</filter> | |
123 </data> | |
124 <data format="tabular" name="blast_tabular" label="${tool.name} on ${on_string}"> | |
125 <filter>output_section["output"]["outfmt"] == "6"</filter> | |
126 </data> | |
127 <!-- for daa diamond appends the .daa extension -> hence from_work_dir --> | |
128 <data format="daa" name="daa_output" label="${tool.name} on ${on_string}" from_work_dir="output.daa"> | |
129 <filter>output_section["output"]["outfmt"] == "100"</filter> | |
130 </data> | |
131 <data format="sam" name="sam_output" label="${tool.name} on ${on_string}"> | |
132 <filter>output_section["output"]["outfmt"] == "101"</filter> | |
133 </data> | |
134 <data format="tabular" name="tax_output" label="${tool.name} on ${on_string}"> | |
135 <filter>output_section["output"]["outfmt"] == "102"</filter> | |
136 </data> | |
137 </xml> | |
138 | |
139 <token name="@OUTPUT_ARGS@"> | |
140 #if $output_section.output.outfmt == "0" | |
141 --outfmt '0' | |
142 --out '$blast_pairw' | |
143 #else if $output_section.output.outfmt == "5" | |
144 --outfmt '5' | |
145 --out '$blast_xml' | |
146 #else if $output_section.output.outfmt == "6" | |
147 --outfmt '6' #echo ' '.join(str($output_section.output.fields).split(',')) | |
148 --out '$blast_tabular' | |
149 --unal $output_section.output.unal | |
150 #else if $output_section.output.outfmt == "100" | |
151 --outfmt '100' | |
152 $output_section.output.salltitles | |
153 $output_section.output.sallseqid | |
154 --out output.daa | |
155 #else if $output_section.output.outfmt == "101" | |
156 --outfmt '101' | |
157 $output_section.output.salltitles | |
158 $output_section.output.sallseqid | |
159 --out '$sam_output' | |
160 #else if $output_section.output.outfmt == "102" | |
161 --outfmt '102' | |
162 --out '$tax_output' | |
163 #end if | |
164 </token> | |
165 | |
166 <token name="@HITFILTER_ARGS@"> | |
167 #if str($hit_filter.hit_filter_select) == 'max': | |
168 --max-target-seqs '$hit_filter.max_target_seqs' | |
169 #else: | |
170 --top '$hit_filter.top' | |
171 #end if | |
172 </token> | |
173 </macros> |