annotate variant_filtration.xml @ 0:7555e479e47e draft default tip

Imported from capsule None
author devteam
date Tue, 01 Apr 2014 09:12:22 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="gatk_variant_filtration" name="Variant Filtration" version="0.0.5">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
2 <description>on VCF files</description>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.4">gatk</requirement>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
5 </requirements>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
6 <macros>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
7 <import>gatk_macros.xml</import>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
8 </macros>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
9 <command interpreter="python">gatk_wrapper.py
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
10 #from binascii import hexlify
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
11 --max_jvm_heap_fraction "1"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
12 --stdout "${output_log}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
13 -d "--variant:variant,%(file_type)s" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
14 -p 'java
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
15 -jar "\$JAVA_JAR_PATH/GenomeAnalysisTK.jar"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
16 -T "VariantFiltration"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
17 ##--num_threads 4 ##hard coded, for now
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
18 -et "NO_ET" ##ET no phone home
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
19 -o "${output_vcf}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
20 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
21 #if $reference_source.reference_source_selector != "history":
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
22 -R "${reference_source.ref_file.fields.path}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
23 #end if
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
24 '
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
25 #for $variant_filter in $variant_filters:
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
26 #set $variant_filter = "--%sExpression '%s' --%sName '%s'" % ( str( $variant_filter.is_genotype_filter ), str( $variant_filter.filter_expression ), str( $variant_filter.is_genotype_filter ), str( $variant_filter.filter_name ) )
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
27 -o '${ hexlify( $variant_filter ) }'
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
28 #end for
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
29
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
30 #if str( $mask_rod_bind_type.mask_rod_bind_type_selector ) == 'set_mask':
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
31 -d "--mask:${mask_rod_bind_type.mask_rod_name},%(file_type)s" "${mask_rod_bind_type.input_mask_rod}" "${mask_rod_bind_type.input_mask_rod.ext}" "input_mask_${mask_rod_bind_type.mask_rod_name}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
32 -p '
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
33 --maskExtension "${mask_rod_bind_type.mask_extension}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
34 --maskName "${mask_rod_bind_type.mask_rod_name}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
35 '
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
36 #end if
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
37
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
38 #include source=$standard_gatk_options#
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
39
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
40 ##start analysis specific options
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
41 #if $cluster_snp_type.cluster_snp_type_selector == "cluster_snp":
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
42 -p '
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
43 --clusterSize "${cluster_snp_type.cluster_size}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
44 --clusterWindowSize "${cluster_snp_type.cluster_window_size}"
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
45 '
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
46 #end if
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
47 -p '${missing_values_in_expressions_should_evaluate_as_failing}'
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
48 </command>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
49 <inputs>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
50 <conditional name="reference_source">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
51 <expand macro="reference_source_selector_param" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
52 <when value="cached">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
53 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &amp;lt;variant&amp;gt;" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
54 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
55 <options from_data_table="gatk_picard_indexes">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
56 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
57 </options>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
58 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
59 </param>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
60 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
61 <when value="history"> <!-- FIX ME!!!! -->
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
62 <param name="input_variant" type="data" format="vcf" label="Variant file to annotate" help="-V,--variant &amp;lt;variant&amp;gt;" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
63 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
64 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
65 </conditional>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
66
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
67
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
68 <repeat name="variant_filters" title="Variant Filters">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
69 <param name="filter_expression" value="AB &lt; 0.2 || MQ0 &gt; 50" type="text" label="Filter expression" help="JEXL formatted expressions (-filter,--filterExpression &amp;lt;filterExpression&amp;gt;)">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
70 <sanitizer>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
71 <valid initial="string.printable">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
72 <remove value="&apos;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
73 </valid>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
74 <mapping initial="none"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
75 </sanitizer>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
76 </param>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
77 <param name="filter_name" value="custom_filter" type="text" label="Filter name" help="-filterName,--filterName &amp;lt;filterName&amp;gt;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
78 <param name="is_genotype_filter" type="boolean" truevalue="genotypeFilter" falsevalue="filter" label="Use filter at the individual sample level" help="Use -G_filter,--genotypeFilterExpression &amp;lt;genotypeFilterExpression&amp;gt; and -G_filterName,--genotypeFilterName &amp;lt;genotypeFilterName&amp;gt; for filter type" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
79 </repeat>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
80
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
81
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
82
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
83 <conditional name="mask_rod_bind_type">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
84 <param name="mask_rod_bind_type_selector" type="select" label="Provide a Mask reference-ordered data file">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
85 <option value="set_mask" selected="True">Set maskP</option>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
86 <option value="exclude_mask">Don't set mask</option>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
87 </param>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
88 <when value="exclude_mask">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
89 <!-- Do nothing here -->
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
90 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
91 <when value="set_mask">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
92 <param name="input_mask_rod" type="data" format="bed,gatk_dbsnp,vcf" label="Mask ROD file" help="--mask &amp;lt;mask&amp;gt;" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
93 <param name="mask_rod_name" type="text" value="Mask" label="Mask Name" help="-maskName,--maskName &amp;lt;maskName&amp;gt;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
94 <param name="mask_extension" type="integer" value="0" label="Mask Extension" help="-maskExtend,--maskExtension &amp;lt;maskExtension&amp;gt;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
95 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
96 </conditional>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
97
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
98
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
99 <expand macro="gatk_param_type_conditional" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
100
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
101 <conditional name="cluster_snp_type">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
102 <param name="cluster_snp_type_selector" type="select" label="Cluster SNPs">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
103 <option value="cluster_snp">Cluster SNPs</option>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
104 <option value="do_not_cluster_snp" selected="True">Do not cluster SNPs</option>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
105 </param>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
106 <when value="do_not_cluster_snp">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
107 <!-- Do nothing here -->
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
108 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
109 <when value="cluster_snp">
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
110 <param name="cluster_size" type="integer" value="3" label="The number of SNPs which make up a cluster" help="-cluster,--clusterSize &amp;lt;clusterSize&amp;gt;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
111 <param name="cluster_window_size" type="integer" value="0" label="The window size (in bases) in which to evaluate clustered SNPs" help="-window,--clusterWindowSize &amp;lt;clusterWindowSize&amp;gt;"/>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
112 </when>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
113 </conditional>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
114
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
115 <param name="missing_values_in_expressions_should_evaluate_as_failing" type="boolean" truevalue="--missingValuesInExpressionsShouldEvaluateAsFailing" falsevalue="" label="Should missing values be considered failing the expression" help="--missingValuesInExpressionsShouldEvaluateAsFailing" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
116
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
117 </inputs>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
118 <outputs>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
119 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (Variant File)" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
120 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
121 </outputs>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
122 <tests>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
123 <test>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
124 <param name="reference_source_selector" value="history" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
125 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
126 <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
127 <param name="filter_expression" value="MQ &lt; 37.74 || MQ0 &gt; 50" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
128 <param name="filter_name" value="Galaxy_filter" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
129 <param name="is_genotype_filter" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
130 <param name="mask_rod_bind_type_selector" value="set_mask" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
131 <param name="input_mask_rod" value="gatk/fake_phiX_variant_locations.bed" ftype="bed" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
132 <param name="mask_rod_name" value="." />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
133 <param name="mask_extension" value="0" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
134 <param name="gatk_param_type_selector" value="basic" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
135 <param name="cluster_snp_type_selector" value="do_not_cluster_snp" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
136 <param name="missing_values_in_expressions_should_evaluate_as_failing" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
137 <output name="output_vcf" file="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" lines_diff="4" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
138 <output name="output_log" file="gatk/gatk_variant_filtration/gatk_variant_filtration_out_1.log.contains" compare="contains" />
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
139 </test>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
140 </tests>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
141 <help>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
142 **What it does**
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
143
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
144 Filters variant calls using a number of user-selectable, parameterizable criteria.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
145
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
146 For more information on using the VariantFiltration module, see this `tool specific page &lt;http://www.broadinstitute.org/gsa/wiki/index.php/VariantFiltrationWalker&gt;`_.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
147
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
148 To learn about best practices for variant detection using GATK, see this `overview &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Best_Practice_Variant_Detection_with_the_GATK_v3&gt;`_.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
149
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
150 If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Frequently_Asked_Questions&gt;`_.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
151
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
152 ------
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
153
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
154 **Inputs**
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
155
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
156 GenomeAnalysisTK: VariantFiltration accepts a VCF input file.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
157
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
158
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
159 **Outputs**
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
160
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
161 The output is in VCF format.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
162
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
163
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
164 Go `here &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Input_files_for_the_GATK&gt;`_ for details on GATK file formats.
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
165
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
166 -------
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
167
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
168 **Settings**::
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
169
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
170
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
171 filterExpression One or more expression used with INFO fields to filter (see wiki docs for more info)
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
172 filterName Names to use for the list of filters (must be a 1-to-1 mapping); this name is put in the FILTER field for variants that get filtered
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
173 genotypeFilterExpression One or more expression used with FORMAT (sample/genotype-level) fields to filter (see wiki docs for more info)
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
174 genotypeFilterName Names to use for the list of sample/genotype filters (must be a 1-to-1 mapping); this name is put in the FILTER field for variants that get filtered
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
175 clusterSize The number of SNPs which make up a cluster (see also --clusterWindowSize); [default:3]
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
176 clusterWindowSize The window size (in bases) in which to evaluate clustered SNPs (to disable the clustered SNP filter, set this value to less than 1); [default:0]
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
177 maskName The text to put in the FILTER field if a 'mask' rod is provided and overlaps with a variant call; [default:'Mask']
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
178 missingValuesInExpressionsShouldEvaluateAsFailing When evaluating the JEXL expressions, should missing values be considered failing the expression (by default they are considered passing)?
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
179
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
180 @CITATION_SECTION@
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
181 </help>
7555e479e47e Imported from capsule None
devteam
parents:
diff changeset
182 </tool>