-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmacros.xml
697 lines (599 loc) · 30.9 KB
/
macros.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
<?xml version="1.0"?>
<macros>
<token name="@VERSION@">4.0.5.1</token>
<token name="@WRAPPER_VERSION@">@VERSION@+galaxy</token>
<xml name="requirements">
<requirements>
<requirement type="package" version="@VERSION@">gatk4</requirement>
<requirement type="package" version="0.2.5">tabix</requirement>
<requirement type="package" version="1.9">samtools</requirement>
<yield />
</requirements>
</xml>
<!--Hacky way to determine GATK version, for display in tool info-->
<xml name="version_cmd">
<version_command>gatk SortSam --version 2>&1 | grep Version | cut -d ':' -f 2</version_command>
</xml>
<!--Command token, java options should not be hard coded here.-->
<token name="@CMD_BEGIN@">gatk --java-options "-Xmx24g -Xms2g"</token>
<!--Define sections that parameters could exist within.-->
<template name="set_sections">
#set global $sections = ['', 'optional.', 'advanced.', 'common.', 'deprecated.']
</template>
<!--Reference genome handling-->
<!--One template each for the different reference genome parameter names.-->
<!--TODO: Can the reference parameters all be the same?-->
<xml name="ref_sel">
<conditional name="reference_source">
<param name="reference_source_selector" type="select" label="Choose the source for the reference list">
<option value="cached">Locally cached</option>
<option value="history">History</option>
<option value="no_ref" selected="true">Do not pass</option>
</param>
<when value="cached">
<param name="reference_sequence" type="select" label="Reference" help="Reference sequence file." >
<options from_data_table="all_fasta" >
<validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" />
</options>
</param>
</when>
<when value="history">
<param name="reference_sequence" type="data" format="fasta" label="Reference" help="Reference sequence file." />
</when>
</conditional>
</xml>
<template name="ref_opts">
#for $sect in $sections
#if $varExists($sect + "reference_source.reference_source_selector")
#if $getVar($sect + "reference_source.reference_source_selector") != "no_ref"
#if $getVar($sect + "reference_source.reference_source_selector") != "history"
--reference $getVar($sect + "reference_source.reference_sequence.fields.path")
#else
--reference $getVar($sect + "reference_source.reference_sequence")
#end if
#end if
#end if
#end for
</template>
<template name="picard_ref_opts">
#for $sect in $sections
#if $varExists($sect + "reference_source.reference_source_selector")
#if $getVar($sect + "reference_source.reference_source_selector") != "no_ref"
#if $getVar($sect + "reference_source.reference_source_selector") != "history"
--REFERENCE_SEQUENCE $getVar($sect + "reference_source.reference_sequence.fields.path")
#else
--REFERENCE_SEQUENCE $getVar($sect + "reference_source.reference_sequence")
#end if
#end if
#end if
#end for
</template>
<template name="picard_ref_opts_plain">
#for $sect in $sections
#if $varExists($sect + "reference_source.reference_source_selector")
#if $getVar($sect + "reference_source.reference_source_selector") != "no_ref"
#if $getVar($sect + "reference_source.reference_source_selector") != "history"
--REFERENCE $getVar($sect + "reference_source.reference_sequence.fields.path")
#else
--REFERENCE $getVar($sect + "reference_source.reference_sequence")
#end if
#end if
#end if
#end for
</template>
<template name="ref_opts_input">
#for $sect in $sections
#if $varExists($sect + "reference_source.reference_source_selector")
#if $getVar($sect + "reference_source.reference_source_selector") != "no_ref"
#if $getVar($sect + "reference_source.reference_source_selector") != "history"
--input $getVar($sect + "reference_source.reference_sequence.fields.path")
#else
--input $getVar($sect + "reference_source.reference_sequence")
#end if
#end if
#end if
#end for
</template>
<!--Interval Macros-->
<template name="gatk_ints_chth">
#for $sect in $sections
#if $varExists($sect + "ival_type.ival_type_sel")
#if $getVar($sect + "ival_type.ival_type_sel") == "ival_file"
#if $varExists($sect + "ival_type.intervals")
#if $getVar($sect + "ival_type.intervals").is_of_type("gatk_interval")
--intervals intervals.interval_list
#end if
#if $getVar($sect + "ival_type.intervals").is_of_type("bed")
--intervals intervals.bed
#end if
#if $getVar($sect + "ival_type.intervals").is_of_type("vcf")
--intervals intervals.vcf
#end if
#end if
#else
#if $varExists($sect + "ival_type.intervals")
--intervals $getVar($sect + "ival_type.intervals")
#end if
#end if
#if $varExists($sect + "ival_type.interval_padding")
--interval-padding $getVar($sect + "ival_type.interval_padding")
#end if
#end if
#end for
</template>
<template name="pre_gatk_ints_chth"><![CDATA[
#for $sect in $sections
#if $varExists($sect + "ival_type.ival_type_sel")
#if $getVar($sect + "ival_type.ival_type_sel") == "ival_file"
#if $varExists($sect + "ival_type.intervals")
#if $getVar($sect + "ival_type.intervals").is_of_type("gatk_interval")
ln -s $getVar($sect + "ival_type.intervals") intervals.interval_list &&
#end if
#if $getVar($sect + "ival_type.intervals").is_of_type("bed")
ln -s $getVar($sect + "ival_type.intervals") intervals.bed &&
#end if
#if $getVar($sect + "ival_type.intervals").is_of_type("vcf")
ln -s $getVar($sect + "ival_type.intervals") intervals.vcf &&
#end if
#end if
#end if
#end if
#end for
]]></template>
<xml name="gatk_ints">
<conditional name="ival_type">
<param name="ival_type_sel" type="select" label="Choose Genomic Interval Source">
<option value="ival_file" selected="true">Interval File</option>
<option value="ival_text" selected="false">Interval Text Input</option>
</param>
<when value="ival_file">
<param name="intervals" argument="--intervals" type="data" optional="true" format="bed,vcf,gatk_interval" label="Intervals File" help="One or more genomic intervals over which to operate"/>
<param name="interval_padding" argument="--interval-padding" type="integer" optional="true" value="0" label="Interval Padding" help="Amount of padding (in bp) to add to each interval you are including."/>
</when>
<when value="ival_text">
<param name="intervals" argument="--intervals" type="text" optional="true" label="Intervals Text Input" help="One or more genomic intervals over which to operate. Enter in chrom:start-stop format."/>
<param name="interval_padding" argument="--interval-padding" type="integer" optional="true" value="0" label="Interval Padding" help="Amount of padding (in bp) to add to each interval you are including."/>
</when>
</conditional>
</xml>
<!--Exclude Intervals-->
<xml name="gatk_excl_ints">
<conditional name="excl_ival_type">
<param name="excl_ival_type_sel" type="select" label="Choose Genomic Interval Exclusion Source">
<option value="excl_ival_file" selected="true">Exclude Interval File</option>
<option value="excl_ival_text" selected="false">Exclude Interval Text Input</option>
</param>
<when value="excl_ival_file">
<param name="exclude_intervals" argument="--exclude-intervals" type="data" optional="true" format="bed,vcf,gatk_interval" label="Exclude Intervals File" help="One or more genomic intervals to exclude from processing"/>
<param name="interval_exclusion_padding" argument="--interval-exclusion-padding" type="integer" optional="true" value="0" label="Interval Exclusion Padding" help="Amount of padding (in bp) to add to each interval you are excluding."/>
</when>
<when value="excl_ival_text">
<param name="exclude_intervals" argument="--exclude-intervals" type="text" optional="true" label="Exclude Intervals Text Input" help="One or more genomic intervals to exclude from processing. Enter in chrom:start-stop format."/>
<param name="interval_exclusion_padding" argument="--interval-exclusion-padding" type="integer" optional="true" value="0" label="Interval Exclusion Padding" help="Amount of padding (in bp) to add to each interval you are excluding."/>
</when>
</conditional>
</xml>
<template name="gatk_excl_ints_chth">
#for $sect in $sections
#if $varExists($sect + "excl_ival_type.excl_ival_type_sel")
#if $getVar($sect + "excl_ival_type.excl_ival_type_sel") == "ival_file"
#if $varExists($sect + "excl_ival_type.exclude_intervals")
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("gatk_interval")
--exclude-intervals excl_intervals.interval_list
#end if
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("bed")
--exclude-intervals excl_intervals.bed
#end if
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("vcf")
--exclude-intervals excl_intervals.vcf
#end if
#end if
#elif $getVar($sect + "excl_ival_type.excl_ival_type_sel") == "excl_ival_text"
#if $varExists($sect + "excl_ival_type.exclude_intervals")
--exclude-intervals $getVar($sect + "excl_ival_type.exclude_intervals")
#end if
#else
#pass
#end if
#if $varExists($sect + "excl_ival_type.interval_exclusion_padding")
--interval-exclusion-padding $getVar($sect + "excl_ival_type.interval_exclusion_padding")
#end if
#end if
#end for
</template>
<template name="pre_gatk_excl_ints_chth"><![CDATA[
#for $sect in $sections
#if $varExists($sect + "excl_ival_type.excl_ival_type_sel")
#if $getVar($sect + "excl_ival_type.excl_ival_type_sel") == "excl_ival_file"
#if $varExists($sect + "excl_ival_type.exclude_intervals")
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("gatk_interval")
ln -s $getVar($sect + "excl_ival_type.exclude_intervals") excl_intervals.interval_list &&
#end if
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("bed")
ln -s $getVar($sect + "excl_ival_type.exclude_intervals") excl_intervals.bed &&
#end if
#if $getVar($sect + "excl_ival_type.exclude_intervals").is_of_type("vcf")
ln -s $getVar($sect + "excl_ival_type.exclude_intervals") excl_intervals.vcf &&
#end if
#end if
#end if
#end if
#end for
]]></template>
<!--Sequence dictionary selection options for Picard type tools-->
<template name="picard_seqdict_opts">
#for $sect in $sections
#if $varExists($sect + "seqdict_source.seqdict_source_selector")
#if $getVar($sect + "seqdict_source.seqdict_source_selector") != "no_seq_dict"
#if $getVar($sect + "seqdict_source.seqdict_source_selector") != "history"
#set seq_dict_loc = ''.join($getVar($sect + seqdict_source.seqdict_sequence).fields.path.split('.')[:-1]) + '.dict'
--SEQUENCE_DICTIONARY $seq_dict_loc
#else
--SEQUENCE_DICTIONARY $getVar($sect + "seqdict_source.seqdict_sequence")
#end if
#end if
#end if
#end for
</template>
<template name="gatk_seqdict">
#for $sect in $sections
#if $varExists($sect + "seqdict_source.seqdict_source_selector")
#if $getVar($sect + "seqdict_source.seqdict_source_selector") != "no_seq_dict"
#if $getVar($sect + "seqdict_source.seqdict_source_selector") != "history"
#set $seq_dict_loc = ''.join($getVar($sect + "seqdict_source.seqdict_sequence").fields.path.split('.')[:-1]) + '.dict'
--sequence-dictionary $seq_dict_loc
#else
--sequence-dictionary $getVar($sect + "seqdict_source.seqdict_sequence")
#end if
#end if
#end if
#end for
</template>
<xml name="seq_dict_sel">
<conditional name="seqdict_source">
<param name="seqdict_source_selector" type="select" label="Choose the source for the sequence dictionary">
<option value="cached">Locally cached</option>
<option value="history">History</option>
<option value="no_seq_dict" selected="true">Do not pass</option>
</param>
<when value="cached">
<param name="seqdict_sequence" type="select" label="Sequence Dictionary" help="Sequence dictionary file." >
<options from_data_table="all_fasta" >
<validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" />
</options>
</param>
</when>
<when value="history">
<param name="seqdict_sequence" type="data" format="txt" label="Sequence Dictionary" help="Sequence dictionary file. Must be in dict format." />
</when>
</conditional>
</xml>
<!--BAM input-->
<template name="picard_bam_input">
--INPUT input.bam
</template>
<template name="gatk_bam_input">
--input input.bam
</template>
<template name="bam_index_pre_chth"><![CDATA[
#for $sect in $sections
#if $varExists($sect + "input")
#if $getVar($sect + "input").is_of_type("bam")
ln -s $getVar($sect + "input") input.bam &&
samtools index input.bam &&
#else
ln -s $getVar($sect + "input") input.sam &&
samtools view -bS input.sam -o input.bam &&
samtools index input.bam &&
#end if
#end if
#end for
]]></template>
<xml name="gatk_bam_req_params">
<param name="input" type="data" format="bam,sam" label="Input BAM/SAM/CRAM file" />
</xml>
<template name="picard_bam_index"><![CDATA[
#if $input.is_of_type("bam")
ln -s $INPUT input.bam &&
samtools index input.bam &&
#else
ln -s $INPUT input.sam &&
samtools view -bS input.sam -o input.bam &&
samtools index input.bam &&
#end if
]]></template>
<!--Output goes to stdout, no output parameter exists.-->
<template name="stdout_to_output">
> output.txt
</template>
<xml name="stdout_to_output_params">
<data format="txt" name="output" label="${tool.name} on ${on_string}: txt" from_work_dir="output.txt" />
</xml>
<!--Multiple input files, true for List[File] types, and sometimes List[String] types -->
<template name="gatk_input_multi"><![CDATA[
#for $num, $file in enumerate($variant)
#if $file.is_of_type("vcf_bgzip")
--variant input${num}.vcf.gz
#elif $file.is_of_type("txt")
--variant input${num}.list
#else
--variant input${num}.vcf
#end if
#end for
]]></template>
<template name="gatk_tabix_multi"><![CDATA[
#for $num, $file in enumerate($variant)
#set datatype = $file.datatype
#if $file.is_of_type("vcf_bgzip")
ln -s $file input${num}.vcf.gz &&
tabix input${num}.vcf.gz &&
#elif $file.is_of_type("txt")
ln -s $file input${num}.list &&
#else
ln -s $file input${num}.vcf &&
#end if
#end for
]]></template>
<xml name="vcf_input_params_multi">
<param name="input" type="data" multiple="true" format="vcf,vcf_bgzip" label="Input VCF file" help="Input VCF(s) to be sorted. Multiple inputs must have the same sample names (in order)"/>
</xml>
<!--ABOVE HAS BEEN REVIEWED-->
<!--{-->
<!--"summary": "BAM/SAM/CRAM file containing reads",-->
<!--"name": "--input",-->
<!--"synonyms": "-I",-->
<!--"type": "List[String]",-->
<!--"required": "yes",-->
<!--"fulltext": "",-->
<!--"defaultValue": "[]",-->
<!--"minValue": "NA",-->
<!--"maxValue": "NA",-->
<!--"minRecValue": "NA",-->
<!--"maxRecValue": "NA",-->
<!--"kind": "required",-->
<!--"options": []-->
<!--},-->
<!--Required BAM input, GATK tool, may be specified multiple times.-->
<!--BAM should be indexed on the fly.-->
<!--Parameter is required, so is not contained within a section.-->
<!--Only decriptor that makes this unique for all input parameters is the summary field.-->
<!--{'pre_chth': ['bam_index_pre_chth'],-->
<!--'main_chth': ['picard_bam_input'],-->
<!--'main_xml': ['gatk_bam_req_params']}},-->
<!--Macros for multiple input tools. List[File] in GATK json.-->
<template name="vcf_tabix_multi"><![CDATA[
#for $num, $file in enumerate($input)
#set datatype = $file.datatype
#if $file.is_of_type("vcf_bgzip")
ln -s $file input${num}.vcf.gz &&
tabix input${num}.vcf.gz &&
#else
ln -s $file input${num}.vcf &&
#end if
#end for
]]></template>
<template name="vcf_input_multi_picard"><![CDATA[
#for $num, $file in enumerate($input)
#if $file.is_of_type("vcf_bgzip")
--INPUT input${num}.vcf.gz
#else
--INPUT input${num}.vcf
#end if
#end for
]]></template>
<template name="vcf_input_multi"><![CDATA[
#for $num, $file in enumerate($input)
#if $file.is_of_type("vcf_bgzip")
--input input${num}.vcf.gz
#else
--input input${num}.vcf
#end if
#end for
]]></template>
<!--Picard single input tools-->
<template name="vcf_tabix"><![CDATA[
#set datatype = $input.datatype
#if $input.is_of_type("vcf_bgzip")
ln -s $input input.vcf.gz &&
tabix input.vcf.gz &&
#else
ln -s $input input.vcf &&
#end if
]]></template>
<template name="gatk_tabix"><![CDATA[
#set datatype = $variant.datatype
#if $variant.is_of_type("vcf_bgzip")
ln -s $variant input.vcf.gz &&
tabix input.vcf.gz &&
#else
ln -s $variant input.vcf &&
gatk IndexFeatureFile -F input.vcf &&
#end if
]]></template>
<template name="vcf_input_picard"><![CDATA[
#if $input.is_of_type("vcf_bgzip")
--INPUT input.vcf.gz
#else
--INPUT input.vcf
#end if
]]></template>
<template name="vcf_input"><![CDATA[
#if $input.is_of_type("vcf_bgzip")
--input input.vcf.gz
#else
--input input.vcf
#end if
]]></template>
<template name="gatk_input"><![CDATA[
#if $variant.is_of_type("vcf_bgzip")
--variant input.vcf.gz
#else
--variant input.vcf
#end if
]]></template>
<template name="gatk_gvcf_tabix"><![CDATA[
#if $variant
ln -s $variant input.g.vcf &&
#end if
]]></template>
<template name="gatk_gvcf_input"><![CDATA[
--variant input.g.vcf
]]></template>
<xml name="gatk_gvcf_input_params">
<param name="variant" type="data" multiple="false" format="vcf" label="Input gVCF file" help=""/>
</xml>
<xml name="vcf_input_params">
<param name="input" type="data" multiple="false" format="vcf,vcf_bgzip" label="Input VCF file" help="Input VCF(s) to be sorted. Multiple inputs must have the same sample names (in order)"/>
</xml>
<xml name="gatk_vcf_input_params">
<param name="variant" type="data" multiple="false" format="vcf,vcf_bgzip" label="Input VCF file" help="A VCF file containing variants."/>
</xml>
<xml name="gatk_vcf_input_params_multi">
<param name="variant" type="data" multiple="true" format="vcf,vcf_bgzip,txt" label="Input VCF file(s)" help="A VCF file containing variants or a list of VCFs. Can be specified multiple times."/>
</xml>
<xml name="gatk_req_params">
<param name="input" type="data" format="bam,sam,cram" label="Input BAM/SAM/CRAM file" />
</xml>
<!--HDF5 Inputs-->
<xml name="hdf5_input">
<param name="input" type="data" format="h5,tabular" label="Input TSV or HDF5" help="Input TSV or HDF5 file containing integer read counts in genomic intervals for a single case sample (output of CollectReadCounts)." />
</xml>
<template name="hdf5_input_chth"><![CDATA[
--input "${input}"
]]></template>
<template name="hdf5_output_chth">
--output "${output}"
</template>
<xml name="hdf5_output">
<data format="h5" name="output" label="${tool.name} on ${on_string}: HDF5" help="Output file for read counts." />
</xml>
<!--Output specific to ModelSegments. Files created based on prefix, so force that to be what we want, then pull important files with from_work_dir.-->
<!--${SAMPLE}.cr.seg-->
<!--${SAMPLE}.modelFinal.seg-->
<template name="modelsegments_chth"><![CDATA[
--output "."
--output-prefix "modelsegments"
]]></template>
<xml name="modelsegments_output">
<data format="tabular" name="cr_seg" label="${tool.name} on ${on_string}: cr.seg" help="Copy-ratio segments." from_work_dir="modelsegments.cr.seg"/>
<data format="tabular" name="modelfinal_seg" label="${tool.name} on ${on_string}: modelFinal.seg" help="Modeled Segments" from_work_dir="modelsegments.modelFinal.seg"/>
</xml>
<!--deltaMAD.txt-->
<!--denoisedLimit4.png-->
<!--denoisedMAD.txt-->
<!--denoised.png-->
<!--scaledDeltaMAD.txt-->
<!--modeled.png-->
<!--standardizedMAD.txt-->
<template name="plotmodeledsegments_chth"><![CDATA[
--output "."
--output-prefix "plotmodeledsegments"
]]></template>
<xml name="plotmodeledsegments_output">
<data format="png" name="modeled_png" label="${tool.name} on ${on_string}: modeled.png" help="Copy-Ratio Plot" from_work_dir="plotmodeledsegments.modeled.png"/>
</xml>
<!--Common Picard options-->
<template name="picard_opts">
#if $picard_adv.arguments_file
--arguments_file ${picard_adv.arguments_file}
#end if
--COMPRESSION_LEVEL ${picard_adv.COMPRESSION_LEVEL}
#if $picard_adv.GA4GH_CLIENT_SECRETS
--GA4GH_CLIENT_SECRETS ${picard_adv.GA4GH_CLIENT_SECRETS}
#end if
--MAX_RECORDS_IN_RAM ${picard_adv.MAX_RECORDS_IN_RAM}
--VALIDATION_STRINGENCY ${picard_adv.VALIDATION_STRINGENCY}
--VERBOSITY ${picard_adv.VERBOSITY}
${picard_adv.CREATE_MD5_FILE}
${picard_adv.USE_JDK_DEFLATER}
${picard_adv.USE_JDK_INFLATER}
</template>
<xml name="picard_params">
<section name="picard_adv" title="Advanced Picard Options (Only change these if you know what you're doing.)" expanded="False">
<param argument="--arguments_file" type="data" optional="true" format="txt" label="Arguments File" help="read one or more arguments files and add them to the command line" />
<param argument="--COMPRESSION_LEVEL" type="integer" optional="true" value="5" min="1" max="9" label="Compression Level" help="Compression level for all compressed files created (e.g. BAM and VCF)." />
<param argument="--CREATE_MD5_FILE" truevalue="--CREATE_MD5_FILE" falsevalue="" type="boolean" optional="true" checked="false" label="Create MD5 File" help="Whether to create an MD5 digest for any BAM or FASTQ files created." />
<param argument="--GA4GH_CLIENT_SECRETS" type="data" format="json" optional="true" label="Ga4Gh Client Secrets" help="Google Genomics API client_secrets.json file path." />
<param argument="--MAX_RECORDS_IN_RAM" type="integer" optional="true" value="500000" label="Max Records In Ram" help="When writing files that need to be sorted, this will specify the number of records stored in RAM before spilling to disk. Increasing this number reduces the number of file handles needed to sort the file, and increases the amount of RAM needed." />
<param argument="--TMP_DIR" type="text" optional="true" label="Tmp Dir" help="One or more directories with space available to be used by this program for temporary storage of working files. Keep in mind, you must be able to access this directory from either your user, or from the Galaxy user, depending on your configuration." />
<param argument="--USE_JDK_DEFLATER" truevalue="--USE_JDK_DEFLATER" falsevalue="" type="boolean" optional="true" checked="false" label="Use Jdk Deflater" help="Use the JDK Deflater instead of the Intel Deflater for writing compressed output" />
<param argument="--USE_JDK_INFLATER" truevalue="--USE_JDK_INFLATER" falsevalue="" type="boolean" optional="true" checked="false" label="Use Jdk Inflater" help="Use the JDK Inflater instead of the Intel Inflater for reading compressed input" />
<param argument="--VALIDATION_STRINGENCY" type="select" optional="true" label="Validation Stringency" help="Validation stringency for all SAM files read by this program. Setting stringency to SILENT can improve performance when processing a BAM file in which variable-length data (read, qualities, tags) do not otherwise need to be decoded." >
<option value="STRICT" selected="true">STRICT</option>
<option value="LENIENT" selected="false">LENIENT</option>
<option value="SILENT" selected="false">SILENT</option>
</param>
<param argument="--VERBOSITY" type="select" optional="true" label="Verbosity" help="Control verbosity of logging." >
<option value="ERROR" selected="false">ERROR</option>
<option value="WARNING" selected="false">WARNING</option>
<option value="INFO" selected="true">INFO</option>
<option value="DEBUG" selected="false">DEBUG</option>
</param>
</section>
</xml>
<!--Provides option to create gzipped output for VCF files-->
<xml name="gzip_vcf_params">
<param name="gzipped_output" type="boolean" checked="true" label="GZIP Output?" help="If you would like gzipped output, check this box. In general, it would be preferable to do this, unless your downstream tool does not support handling of gzipped files." />
</xml>
<!--Output related Picard options-->
<xml name="gzip_vcf_output_params">
<data format="vcf" name="output_vcf" label="${tool.name} on ${on_string}: vcf" from_work_dir="output.vcf" >
<filter>not gzipped_output</filter>
</data>
<data format="vcf_bgzip" name="output_vcf_bgzip" label="${tool.name} on ${on_string}: vcf_bgzip" from_work_dir="output.vcf.gz" >
<filter>gzipped_output</filter>
</data>
</xml>
<!--These are the same, other than the capitalization of output, so maybe a better way to do this.-->
<template name="picard_vcf_output_opts">
#if $gzipped_output
--OUTPUT output.vcf.gz
#else
--OUTPUT output.vcf
#end if
</template>
<template name="vcf_output_opts">
#if $gzipped_output
--output output.vcf.gz
#else
--output output.vcf
#end if
</template>
<xml name="picard_output_params">
<data format="txt" name="output_md5" label="${tool.name} on ${on_string}: md5sum(txt)" from_work_dir="output.bam.md5" >
<filter>picard_adv['CREATE_MD5_FILE']</filter>
</data>
</xml>
<!--<template name="ref_opts">-->
<!--#set $sections = ['optional','advanced','common','deprecated','']-->
<!--#silent $sys.stderr.write("I WOULD LIKE TO SHOW THE SECTION VARIABLE: '${sections}'\n")-->
<!--#for $sect in $sections-->
<!--#if $varExists('$sect.reference_source.reference_source_selector')-->
<!--#if $sect.reference_source.reference_source_selector != "no_ref"-->
<!--#if $sect.reference_source.reference_source_selector != "history"-->
<!----reference ${sect.reference_source.reference_sequence.fields.path}-->
<!--#else-->
<!----reference ${sect.reference_source.reference_sequence}-->
<!--#end if-->
<!--#end if-->
<!--#end if-->
<!--#end for-->
<!--</template>-->
<!--<template name="ref_opts_opt">-->
<!--#if $optional.reference_source.reference_source_selector != "no_ref"-->
<!--#if $optional.reference_source.reference_source_selector != "history"-->
<!----reference ${optional.reference_source.reference_sequence.fields.path}-->
<!--#else-->
<!----reference ${optional.reference_source.reference_sequence}-->
<!--#end if-->
<!--#end if-->
<!--</template>-->
<!--Citations-->
<xml name="citations">
<citation type="doi">10.1101/gr.107524.110</citation>
<citation type="doi">10.1038/ng.806</citation>
<citation type="doi">10.1002/0471250953.bi1110s43</citation>
<citation type="doi">10.1101/201178</citation>
<yield />
</xml>
</macros>