6
|
1 <tool id="gatk2_variant_apply_recalibration" name="Apply Variant Recalibration" version="@VERSION@.0">
|
0
|
2 <description></description>
|
|
3 <expand macro="requirements" />
|
6
|
4 <expand macro="version_command" />
|
0
|
5 <macros>
|
|
6 <import>gatk2_macros.xml</import>
|
|
7 </macros>
|
1
|
8 <command interpreter="python">
|
|
9 gatk2_wrapper.py
|
|
10 --stdout "${output_log}"
|
|
11 #for $var_count, $variant in enumerate( $reference_source.variants ):
|
|
12 -d "--input:input_${var_count},%(file_type)s" "${variant.input_variants}" "${variant.input_variants.ext}" "input_variants_${var_count}"
|
|
13 #end for
|
0
|
14 -p '
|
|
15 @JAR_PATH@
|
|
16 -T "ApplyRecalibration"
|
|
17 \$GATK2_SITE_OPTIONS
|
|
18
|
|
19 @THREADS@
|
|
20
|
|
21 #if $reference_source.reference_source_selector != "history":
|
|
22 -R "${reference_source.ref_file.fields.path}"
|
|
23 #end if
|
|
24 --recal_file "${reference_source.input_recal}"
|
|
25 --tranches_file "${reference_source.input_tranches}"
|
|
26 --out "${output_variants}"
|
|
27 '
|
|
28
|
|
29 #include source=$standard_gatk_options#
|
|
30
|
|
31 ##start analysis specific options
|
|
32 -p '
|
|
33 --mode "${mode}"
|
|
34
|
|
35 #for $ignore_filter in $ignore_filters:
|
|
36 #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.ignore_filter_type_selector )
|
|
37 #if $ignore_filter_name == "custom":
|
|
38 #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.filter_name )
|
|
39 #end if
|
|
40 --ignore_filter "${ignore_filter_name}"
|
|
41 #end for
|
|
42 --ts_filter_level "${ts_filter_level}"
|
|
43 '
|
|
44 </command>
|
|
45 <inputs>
|
|
46 <conditional name="reference_source">
|
|
47 <expand macro="reference_source_selector_param" />
|
|
48 <when value="cached">
|
|
49 <repeat name="variants" title="Variant" min="1" help="-input,--input &lt;input&gt;">
|
|
50 <param name="input_variants" type="data" format="vcf" label="Variant file to annotate"/>
|
|
51 </repeat>
|
|
52 <param name="input_recal" type="data" format="gatk_recal" label="Variant Recalibration file" help="-recalFile,--recal_file &lt;recal_file&gt;" />
|
|
53 <param name="input_tranches" type="data" format="gatk_tranche" label="Variant Tranches file" help="-tranchesFile,--tranches_file &lt;tranches_file&gt;" />
|
|
54 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
55 <options from_data_table="gatk2_picard_indexes">
|
|
56 <!-- <filter type="data_meta" key="dbkey" ref="variants[0].input_variants" column="dbkey"/> -->
|
|
57 </options>
|
|
58 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
59 </param>
|
|
60 </when>
|
|
61 <when value="history"> <!-- FIX ME!!!! -->
|
|
62 <repeat name="variants" title="Variant" min="1" help="-input,--input &lt;input&gt;">
|
|
63 <param name="input_variants" type="data" format="vcf" label="Variant file to annotate" />
|
|
64 </repeat>
|
|
65 <param name="input_recal" type="data" format="gatk_recal" label="Variant Recalibration file" help="-recalFile,--recal_file &lt;recal_file&gt;" />
|
|
66 <param name="input_tranches" type="data" format="gatk_tranche" label="Variant Tranches file" help="-tranchesFile,--tranches_file &lt;tranches_file&gt;" />
|
|
67 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
|
|
68 </when>
|
|
69 </conditional>
|
|
70
|
|
71 <expand macro="gatk_param_type_conditional" />
|
|
72
|
|
73 <param name="mode" type="select" label="Recalibration mode" help="-mode,--mode &lt;mode&gt;">
|
|
74 <option value="SNP" selected="True">SNP</option>
|
|
75 <option value="INDEL">INDEL</option>
|
|
76 <option value="BOTH">BOTH</option>
|
|
77 </param>
|
|
78 <repeat name="ignore_filters" title="Ignore Filter" help="-ignoreFilter,--ignore_filter &lt;ignore_filter&gt;">
|
|
79 <conditional name="ignore_filter_type">
|
|
80 <param name="ignore_filter_type_selector" type="select" label="Filter Type">
|
|
81 <option value="HARD_TO_VALIDATE">HARD_TO_VALIDATE</option>
|
|
82 <option value="LowQual" >LowQual</option>
|
|
83 <option value="custom" selected="True">Other</option>
|
|
84 </param>
|
|
85 <when value="custom">
|
|
86 <param name="filter_name" type="text" value="" label="Filter name"/>
|
|
87 </when>
|
|
88 <when value="HARD_TO_VALIDATE" />
|
|
89 <when value="LowQual" />
|
|
90 </conditional>
|
|
91 </repeat>
|
|
92 <param name="ts_filter_level" type="float" label="truth sensitivity level at which to start filtering, used here to indicate filtered variants in plots" value="99.0" help="-ts_filter_level,--ts_filter_level &lt;ts_filter_level&gt;"/>
|
|
93 </inputs>
|
|
94 <outputs>
|
|
95 <data format="vcf" name="output_variants" label="${tool.name} on ${on_string} (Variants File)" />
|
|
96 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
97 </outputs>
|
|
98 <tests>
|
|
99 <!-- ADD TESTS -->
|
|
100 </tests>
|
|
101 <help>
|
|
102 **What it does**
|
|
103
|
|
104 Applies cuts to the input vcf file (by adding filter lines) to achieve the desired novel FDR levels which were specified during VariantRecalibration
|
|
105
|
|
106 For more information on using the ApplyRecalibration module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantrecalibration_ApplyRecalibration.html>`_.
|
|
107
|
|
108 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
109
|
|
110 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
111
|
|
112 ------
|
|
113
|
|
114 **Inputs**
|
|
115
|
|
116 GenomeAnalysisTK: ApplyRecalibration accepts a variant input file, a recalibration file and a tranches file.
|
|
117
|
|
118
|
|
119 **Outputs**
|
|
120
|
|
121 The output is in VCF format.
|
|
122
|
|
123 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
124
|
|
125 -------
|
|
126
|
|
127 **Settings**::
|
|
128
|
|
129
|
|
130 recal_file The output recal file used by ApplyRecalibration
|
|
131 tranches_file The input tranches file describing where to cut the data
|
|
132 out The output filtered, recalibrated VCF file
|
|
133 ts_filter_level The truth sensitivity level at which to start filtering
|
|
134 ignore_filter If specified the optimizer will use variants even if the specified filter name is marked in the input VCF file
|
|
135 mode Recalibration mode to employ: 1.) SNP for recalibrating only SNPs (emitting indels untouched in the output VCF); 2.) INDEL for indels; and 3.) BOTH for recalibrating both SNPs and indels simultaneously. (SNP|INDEL|BOTH)
|
|
136
|
|
137 @CITATION_SECTION@
|
|
138 </help>
|
6
|
139 <expand macro="citations" />
|
0
|
140 </tool>
|