Mercurial > repos > gbcs-embl-heidelberg > je_markdupes
annotate je-markdupes.xml @ 10:663a671f92fe draft default tip
planemo upload for repository https://github.com/gbcs-embl/Je/tree/master/src/galaxy commit 5acb6bc253e38c5c61fc70c10443716d4109a711
author | gbcs-embl-heidelberg |
---|---|
date | Sat, 04 Aug 2018 09:02:45 -0400 |
parents | e2d1b5e1eb11 |
children |
rev | line source |
---|---|
3
4ccf1406832d
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit dd9e62bdb01d1252a90ce778103ce9b6b4a8cd52-dirty
gbcs-embl-heidelberg
parents:
0
diff
changeset
|
1 <tool id="je_markdupes" name="Je-MarkDuplicates" version="@VERSION_STRING@"> |
0 | 2 <description>to filter BAM files for read duplicates taking UMIs into account</description> |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
5
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
6 <expand macro="requirements" /> |
0 | 7 <stdio> |
8 <exit_code range="1:" level="fatal" description="Tool exception" /> | |
9 </stdio> | |
5
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
10 <expand macro="version_command" /> |
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
11 <command> |
0 | 12 <![CDATA[ |
13 je markdupes | |
14 | |
15 ## picard MarkDuplicates defaults | |
16 INPUT="${inputFile}" | |
17 OUTPUT="${outFile}" | |
18 | |
19 METRICS_FILE="${metrics_file}" | |
20 | |
21 REMOVE_DUPLICATES="${remove_duplicates}" | |
22 ASSUME_SORTED="${assume_sorted}" | |
23 | |
24 #for $element in $adv_options.comments: | |
25 COMMENT="${element.comment}" | |
26 #end for | |
27 | |
28 DUPLICATE_SCORING_STRATEGY="${adv_options.duplicate_scoring_strategy}" | |
29 | |
30 #import pipes | |
31 READ_NAME_REGEX=${ pipes.quote( str( $adv_options.read_name_regex ) ) or "''" } | |
32 OPTICAL_DUPLICATE_PIXEL_DISTANCE="${adv_options.optical_duplicate_pixel_distance}" | |
33 | |
34 VALIDATION_STRINGENCY="${adv_options.validation_stringency}" | |
35 QUIET=true | |
36 VERBOSITY=ERROR | |
37 | |
38 ## Je Markdupes Specific | |
39 MM=${MM} | |
40 #if str($MAX_N) != "": | |
41 MAX_N=${MAX_N} | |
42 #end if | |
43 @barcode_option_cmd@ | |
44 | |
45 #for $i, $option in enumerate( $repeat_slots ) | |
46 #if str($option.SLOTS) != "": | |
47 SLOTS=${option.SLOTS} | |
48 #end if | |
49 #end for | |
50 | |
51 #if str($trim_conditional.T) == "true": | |
52 T=${trim_conditional.T} | |
53 #for $i, $option in enumerate( $trim_conditional.repeat_tslots ) | |
54 #if str($option.TSLOTS) != "": | |
55 TSLOTS=${option.TSLOTS} | |
56 #end if | |
57 #end for | |
58 #end if | |
59 ]]> | |
60 </command> | |
61 <configfiles> | |
62 <expand macro="barcode_config_file"></expand> | |
63 </configfiles> | |
64 | |
65 <inputs> | |
66 <param format="bam,sam" name="inputFile" type="data" label="Select SAM/BAM dataset" | |
67 help="If empty, upload or import a SAM/BAM dataset"/> | |
68 <param name="remove_duplicates" type="boolean" label="If true do not write duplicates to the output file | |
69 instead of writing them with appropriate flags set" help="REMOVE_DUPLICATES; default=False"/> | |
70 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" | |
71 truevalue="true" falsevalue="false" help="ASSUME_SORTED; default=True"/> | |
72 <conditional name="barcodes"> | |
73 <param name="barcode_list_type_con" type="select" label="Do you have a predefined list of UMIs"> | |
74 <option value="file" selected="true">A one column txt file from the history</option> | |
75 <option value="text">Paste the UMI list in a text field</option> | |
76 <option value="no_barcodes">No predefined list</option> | |
77 </param> | |
78 | |
79 <when value="file"> | |
80 <param name="BARCODE_FILE" type="data" format="tabular,txt" label="UMI file" | |
81 help="BARCODE_FILE. Pre-defined list of Unique Molecular Identifiers that can be expected. | |
82 Format: one column text file, one UMI per line. All UMIs MUST have the same length."/> | |
83 </when> | |
84 | |
85 <when value="text"> | |
86 <param name="barcode_text" type="text" area="True" size="10x30" | |
87 value="barcode\n" label="Barcode file" | |
88 help="BARCODE_FILE. Pre-defined list of Unique Molecular Identifiers that can be expected. | |
89 Format: one column text file, one UMI per line. All UMIs MUST have the same length."> | |
90 <sanitizer> | |
91 <valid initial="string.printable"></valid> | |
92 <mapping initial="none"/> | |
93 </sanitizer> | |
94 </param> | |
95 </when> | |
96 <when value="no_barcodes"/> | |
97 </conditional> | |
98 <repeat name="repeat_slots" min="1" title="Unique Molecular Identifier location"> | |
99 <param name="SLOTS" type="text" value="-1" label="Where to find the UMIs in the read name" | |
100 help="SLOTS. The last position is considered by default (-1). See help below."/> | |
101 </repeat> | |
102 <param name="MM" type="integer" value="1" min="0" | |
103 label="Number of maximum mismatches to consider two Unique Molecular Identifiers (UMIs) similar" | |
104 help="MISMATCHES"/> | |
105 <param name="MAX_N" type="text" value="" label="Maximum number of Ns a UMI can contain" | |
106 help="MAX_NUMBER_OF_N. Above this value, reads are placed in a 'undefined' group. | |
107 Default value is the MISMATCHES number."/> | |
108 <param name="SPLIT" type="text" value=":" label="Character to split up the header" help="SPLIT"/> | |
109 <conditional name="trim_conditional"> | |
110 <param name="T" type="select" | |
111 label="Should barcode information be removed from read names in the output BAM" help="TRIM_HEADERS"> | |
112 <option value="true">Yes</option> | |
113 <option value="false" selected="true">No</option> | |
114 </param> | |
115 <when value="true"> | |
116 <repeat name="repeat_tslots" min="1" title="Unique Molecular Identifier location for trimming"> | |
117 <param name="TSLOTS" type="text" value="-1" | |
118 label="Where to find the UMIs in the read name that should be removed from the header" | |
119 help="TSLOTS. Value for SLOTS is considered by default. See help below"/> | |
120 </repeat> | |
121 </when> | |
122 <when value="false"/> | |
123 </conditional> | |
124 <section name="adv_options" title="Advanced Options" expanded="False"> | |
125 <repeat name="comments" title="Comment" min="0" help="You can provide multiple comments"> | |
126 <param name="comment" type="text" label="Add this comment to BAM dataset"/> | |
127 </repeat> | |
128 | |
129 <param name="duplicate_scoring_strategy" type="select" label="The scoring strategy for choosing the | |
130 non-duplicate among candidates" help="DUPLICATE_SCORING_STRATEGY; default=SUM_OF_BASE_QUALITIES"> | |
131 <option value="SUM_OF_BASE_QUALITIES">SUM_OF_BASE_QUALITIES</option> | |
132 <option value="TOTAL_MAPPED_REFERENCE_LENGTH">TOTAL_MAPPED_REFERENCE_LENGTH</option> | |
133 </param> | |
134 | |
135 <param name="read_name_regex" type="text" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*." | |
136 label="Regular expression that can be used to parse read names in the incoming SAM/BAM dataset" | |
137 help="READ_NAME_REGEX; Read names are parsed to extract three variables: tile/region, x coordinate and | |
138 y coordinate. These values are used to estimate the rate of optical duplication in order to give a more | |
139 accurate estimated library size. See help below for more info; | |
140 default=[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*."> | |
141 <sanitizer> | |
142 <valid initial="string.printable"> | |
143 </valid> | |
144 </sanitizer> | |
145 </param> | |
146 <param name="optical_duplicate_pixel_distance" type="integer" value="100" min="0" max="500" | |
147 label="The maximum offset between two duplicte clusters in order to consider them optical duplicates" | |
148 help="OPTICAL_DUPLICATE_PIXEL_DISTANCE; default=100"/> | |
149 | |
150 <param name="validation_stringency" type="select" label="Select validation stringency" | |
151 help="Setting stringency to SILENT can improve performance when processing a BAM file in which | |
152 variable-length data (read, qualities, tags) do not otherwise need to be decoded."> | |
153 <option value="LENIENT" selected="True">Lenient</option> | |
154 <option value="SILENT">Silent</option> | |
155 <option value="STRICT">Strict</option> | |
156 </param> | |
157 </section> | |
158 </inputs> | |
159 <outputs> | |
160 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: Je-MarkDuplicates BAM output"/> | |
161 <data format="txt" name="metrics_file" label="${tool.name} on ${on_string}: Je-MarkDuplicate metrics"/> | |
162 </outputs> | |
163 | |
164 <tests> | |
165 <test> | |
166 <!-- picard markduplicates default test --> | |
167 <param name="inputFile" value="markdupes_DNase_sorted.bam" ftype="bam"/> | |
168 <param name="barcode_list_type_con" value="file"/> | |
169 <param name="BARCODE_FILE" value="markdupes_umis.txt" ftype="txt"/> | |
170 <param name="repeat_slots_0|SLOTS" value="-1"/> | |
171 <param name="repeat_slots_1|SLOTS" value="-2"/> | |
172 <param name="MM" value="2"/> | |
173 <param name="MAX_N" value="1"/> | |
174 <param name="comment" value="test-run"/> | |
175 <param name="assume_sorted" value="True"/> | |
176 <param name="remove_duplicates" value="True"/> | |
177 <param name="read_name_regex" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*."/> | |
178 <param name="optical_duplicate_pixel_distance" value="100"/> | |
179 <param name="duplicate_scoring_strategy" value="SUM_OF_BASE_QUALITIES"/> | |
180 <param name="validation_stringency" value="LENIENT"/> | |
181 <output name="outFile" file="markdupes_DNase_sorted_marked.bam" ftype="bam" lines_diff="2"/> | |
182 <output name="metrics_file" file="markdupes_metrics.txt" ftype="txt" lines_diff="4"/> | |
183 </test> | |
184 </tests> | |
185 | |
5
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
186 <help> |
0 | 187 <![CDATA[ |
188 **What it does** | |
189 | |
190 Je MarkDupes: Examines aligned records in the supplied SAM or BAM file to locate duplicate molecules taking into account | |
191 molecular barcodes (Unique Molecular Identifiers or UMIs) found in read header. | |
192 All records are then either written to the output file with the duplicate records flagged or trashed. | |
193 | |
194 Input file is a bam file. | |
195 | |
196 Author: Charles Girardot (charles.girardot@embl.de). | |
197 | |
198 Wrapper by: Jelle Scholtalbers (jelle.scholtalbers@embl.de). | |
199 | |
200 ------ | |
201 | |
202 **Know what you are doing** | |
203 | |
204 .. class:: warningmark | |
205 | |
206 You will want to read the `documentation`__. | |
207 | |
208 .. __: http://gbcs.embl.de/portal/Je | |
209 | |
210 ------ | |
211 | |
212 **Parameter list** | |
213 | |
214 This is an exhaustive list of options:: | |
215 | |
216 INPUT=String | |
217 I=String | |
218 | |
219 One or more input SAM or BAM files to analyze. Must be coordinate sorted. | |
220 | |
221 Default value: null. This option may be specified 0 or more times. | |
222 | |
223 OUTPUT=File | |
224 O=File | |
225 | |
226 The output file to write marked records to | |
227 | |
228 Required. | |
229 | |
230 MISMATCHES=Integer | |
231 MM=Integer | |
232 | |
233 Number of MisMatches (inclusive) to still consider two Unique Molecular Identifiers | |
234 (UMIs) the same i.e. this option buffers for sequencing errors. | |
235 Indeed, in case of a sequencing error, 2 duplicate reads would not be considered | |
236 duplicates anymore. | |
237 Note that N are not considered mismatches during comparison ie ATTNGG and NTTANG are seen | |
238 as the same barcode and these two reads would be flagged duplicates. | |
239 This option takes a single value even when several barcodes are present (see SLOTS). | |
240 Note that when declaring several barcodes (see SLOTS) AND providing a predefined set | |
241 of barcodes (see BC option), the MM value is applicable in each lookup. When a predefined | |
242 set of barcodes is NOT given, the different barcodes (SLOTS) are concatenated first and | |
243 the MM value is therefore considered *overall* as the concatenated code is seen as a | |
244 unique code. | |
245 MM=null is like MM=0 | |
246 Use the minimum Hamming distance of the original barcode set (if applicable). | |
247 | |
248 Required. | |
249 | |
250 MAX_NUMBER_OF_N=Integer | |
251 MAX_N=Integer | |
252 | |
253 Maximum number of Ns a molecular code can contain (inclusive). Above this value, reads | |
254 are placed in a UNDEF group. | |
255 More precisely, these 'too degenarate' codes will not : | |
256 * be compared to the list of predefined codes [predefined code list situation ie BC | |
257 option given] nor | |
258 * be considered as a potential independent code [no predefined code list situation ie | |
259 BC option not given] | |
260 Default value is the MISMATCHES number. | |
261 Note that when declaring several barcodes (see SLOTS) AND providing a predefined set | |
262 of barcodes (see BC option), the MAX_N value is applicable to each barcode. When a | |
263 predefined set | |
264 of barcodes is NOT given, the different barcodes (SLOTS) are concatenated first and the | |
265 MAX_N value | |
266 is therefore considered *overall*. | |
267 | |
268 Default value: null. | |
269 | |
270 | |
271 SLOTS=Integer | |
272 SLOTS=Integer | |
273 | |
274 Where to find the UMIs (and only the UMIs) in the read name once read name has been | |
275 tokenized using the SPLIT character (e.g. ':'). | |
276 By default, the UMI is considered to be found at the end of the read header i.e. after | |
277 the last ':'. Use this option to indicate other or additional UMI positions (e.g. | |
278 multiple UMIs present in read header. | |
279 IMPORTANT: counting starts at 1 and negative numbers can be used to start counting from | |
280 the end. | |
281 For example, consider the following read name that lists 3 different barcodes in the end: | |
282 HISEQ:44:C6KC0ANXX:8:2112:20670:79594:CGATGTTT:GATCCTAG:AAGGTACG | |
283 to indicate that the three barcodes are molecular codes, use | |
284 SLOTS=-1 SLOTS=-2 SLOTS=-3 | |
285 if only the 2 last ones should be considered (the third one being a sample encoding | |
286 barcode), use | |
287 SLOTS=-1 SLOTS=-2 | |
288 | |
289 Default value: null. This option may be specified 0 or more times. | |
290 | |
291 BARCODE_FILE=File | |
292 BC=File | |
293 | |
294 Pre-defined list of UMIs that can be expected. Format: one column text file, one barcode | |
295 per line. All UMIs MUST have the same length. | |
296 | |
297 Default value: null. | |
298 | |
299 TRIM_HEADERS=Boolean | |
300 T=Boolean | |
301 | |
302 Should barcode information be removed from read names in the output BAM? | |
303 | |
304 Default value: false. This option can be set to 'null' to clear the default value. | |
305 Possible values: {true, false} | |
306 | |
307 TSLOTS=Integer | |
308 TSLOTS=Integer | |
309 | |
310 Where to find *all* barcode(s) (i.e. sample encoding and UMIs) in the read name once has | |
311 been tokenized using the SPLIT character (e.g. ':'). | |
312 This option is only considered when TRIM_HEADERS=true. When TSLOTS is ommited while | |
313 TRIM_HEADERS=true, the values of SLOTS apply. | |
314 IMPORTANT : counting starts at 1 and negative numbers can be used to start counting from | |
315 the end. | |
316 See SLOT help for examples. | |
317 | |
318 Default value: null. This option may be specified 0 or more times. | |
319 | |
320 SPLIT_CHAR=String | |
321 SPLIT=String | |
322 | |
323 Character to use to split up the read header line, default is ':'. | |
324 | |
325 Default value: ':'. This option can be set to 'null' to clear the default value. | |
326 | |
327 INPUT=String | |
328 I=String | |
329 | |
330 One or more input SAM or BAM files to analyze. Must be coordinate sorted. | |
331 | |
332 Default value: null. This option may be specified 0 or more times. | |
333 | |
334 OUTPUT=File | |
335 O=File | |
336 | |
337 The output file to write marked records to Required. | |
338 | |
339 METRICS_FILE=File | |
340 M=File | |
341 | |
342 File to write duplication metrics to Required. | |
343 | |
344 COMMENT=String | |
345 CO=String | |
346 | |
347 Comment(s) to include in the output file's header. | |
348 | |
349 Default value: null. This option may be specified 0 or more times. | |
350 | |
351 REMOVE_DUPLICATES=Boolean | |
352 | |
353 If true do not write duplicates to the output file instead of writing them with | |
354 appropriate flags set. | |
355 | |
356 Default value: false. This option can be set to 'null' to clear | |
357 the default value. | |
358 Possible values: {true, false} | |
359 | |
360 ASSUME_SORTED=Boolean | |
361 AS=Boolean | |
362 | |
363 If true, assume that the input file is coordinate sorted even if the header says | |
364 otherwise. | |
365 | |
366 Default value: false. This option can be set to 'null' to clear the default | |
367 value. | |
368 Possible values: {true, false} | |
369 | |
370 DUPLICATE_SCORING_STRATEGY=ScoringStrategy | |
371 DS=ScoringStrategy | |
372 | |
373 The scoring strategy for choosing the non-duplicate among candidates. | |
374 | |
375 Default value: SUM_OF_BASE_QUALITIES. This option can be set to 'null' to clear the default value. | |
376 Possible values: {SUM_OF_BASE_QUALITIES, TOTAL_MAPPED_REFERENCE_LENGTH} | |
377 | |
378 READ_NAME_REGEX=String | |
379 | |
380 Regular expression that can be used to parse read names in the incoming SAM file. Read | |
381 names are parsed to extract three variables: tile/region, x coordinate and y coordinate. | |
382 These values are used to estimate the rate of optical duplication in order to give a more | |
383 accurate estimated library size. Set this option to null to disable optical duplicate | |
384 detection. The regular expression should contain three capture groups for the three | |
385 variables, in order. It must match the entire read name. Note that if the default regex | |
386 is specified, a regex match is not actually done, but instead the read name is split on | |
387 colon character. For 5 element names, the 3rd, 4th and 5th elements are assumed to be | |
388 tile, x and y values. For 7 element names (CASAVA 1.8), the 5th, 6th, and 7th elements | |
389 are assumed to be tile, x and y values. | |
390 | |
391 Default value: | |
392 [a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*. This option can be set to 'null' to | |
393 clear the default value. | |
394 | |
395 OPTICAL_DUPLICATE_PIXEL_DISTANCE=Integer | |
396 | |
397 The maximum offset between two duplicte clusters in order to consider them optical | |
398 duplicates. This should usually be set to some fairly small number (e.g. 5-10 pixels) | |
399 unless using later versions of the Illumina pipeline that multiply pixel values by 10, in | |
400 which case 50-100 is more normal. | |
401 | |
402 Default value: 100. This option can be set to 'null' | |
403 to clear the default value. | |
404 | |
405 ]]> | |
5
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
406 </help> |
e2d1b5e1eb11
planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 0eefd837333dae6fbecaf4f55b053268d844eff6
gbcs-embl-heidelberg
parents:
3
diff
changeset
|
407 <expand macro="citations"/> |
0 | 408 </tool> |