0
|
1 <tool id="gatk2_variant_validate" name="Validate Variants" version="0.0.7">
|
|
2 <description></description>
|
|
3 <expand macro="requirements" />
|
|
4 <macros>
|
|
5 <import>gatk2_macros.xml</import>
|
|
6 </macros>
|
|
7 <command interpreter="python">
|
|
8 gatk2_wrapper.py
|
|
9 --stdout "${output_log}"
|
|
10 -d "--variant:variant,%(file_type)s" "${reference_source.input_variant}" "${reference_source.input_variant.ext}" "input_variant"
|
|
11 -p '
|
|
12 @JAR_PATH@
|
|
13 -T "ValidateVariants"
|
|
14
|
|
15 \$GATK2_SITE_OPTIONS
|
|
16
|
|
17 #if $reference_source.reference_source_selector != "history":
|
|
18 -R "${reference_source.ref_file.fields.path}"
|
|
19 #end if
|
|
20 ${warn_on_errors}
|
|
21 ${do_not_validate_filtered_records}
|
|
22 '
|
2
|
23 @DBSNP_OPTIONS@
|
0
|
24
|
|
25 #include source=$standard_gatk_options#
|
|
26 </command>
|
|
27 <inputs>
|
|
28
|
|
29 <conditional name="reference_source">
|
|
30 <expand macro="reference_source_selector_param" />
|
|
31 <when value="cached">
|
|
32 <param name="input_variant" type="data" format="vcf" label="Input variant file" help="-V,--variant &lt;variant&gt;" />
|
|
33 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
|
|
34 <options from_data_table="gatk2_picard_indexes">
|
|
35 <filter type="data_meta" key="dbkey" ref="input_variant" column="dbkey"/>
|
|
36 </options>
|
|
37 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
38 </param>
|
|
39 </when>
|
|
40 <when value="history"> <!-- FIX ME!!!! -->
|
|
41 <param name="input_variant" type="data" format="vcf" label="Input variant file" help="-V,--variant &lt;variant&gt;" />
|
|
42 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
|
|
43 </when>
|
|
44 </conditional>
|
2
|
45 <expand macro="dbsnp_param" />
|
0
|
46
|
|
47 <param name="warn_on_errors" type="boolean" checked="False" truevalue="-warnOnErrors" falsevalue="" label="instead of terminating the run at the first error, print warning messages for each error seen." help="-warnOnErrors,--warnOnErrors"/>
|
|
48 <param name="do_not_validate_filtered_records" type="boolean" checked="False" truevalue="-doNotValidateFilteredRecords" falsevalue="" label="do not try to validate records that are FILTERed." help="-doNotValidateFilteredRecords,--doNotValidateFilteredRecords"/>
|
|
49
|
|
50 <expand macro="gatk_param_type_conditional" />
|
|
51
|
|
52 </inputs>
|
|
53 <outputs>
|
|
54 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
|
|
55 </outputs>
|
|
56 <tests>
|
|
57 <test>
|
|
58 <param name="reference_source_selector" value="history" />
|
|
59 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
|
|
60 <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" />
|
|
61 <param name="dbsnp_rod_bind_type_selector" value="set_dbsnp" />
|
|
62 <param name="dbsnp_input_rod" value="gatk/fake_phiX_variant_locations.vcf" ftype="vcf" />
|
2
|
63 <param name="dbsnp_rod_name" value="dbsnp" />
|
0
|
64 <param name="warn_on_errors" value="True"/>
|
|
65 <param name="do_not_validate_filtered_records" />
|
|
66 <param name="gatk_param_type_selector" value="basic" />
|
|
67 <output name="output_log" file="gatk/gatk_validate_variants/gatk_validate_variants_out_1.log.contains" compare="contains" />
|
|
68 </test>
|
|
69 </tests>
|
|
70 <help>
|
|
71 **What it does**
|
|
72
|
|
73 Validates a variants file.
|
|
74
|
|
75 For more information on using the ValidateVariants module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantutils_ValidateVariants.html>`_.
|
|
76
|
|
77 To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.
|
|
78
|
|
79 If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.
|
|
80
|
|
81 ------
|
|
82
|
|
83 **Inputs**
|
|
84
|
|
85 GenomeAnalysisTK: ValidateVariants accepts variant files as input.
|
|
86
|
|
87
|
|
88 **Outputs**
|
|
89
|
|
90 The output is a log of variant validation.
|
|
91
|
|
92
|
|
93 Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.
|
|
94
|
|
95 -------
|
|
96
|
|
97 **Settings**::
|
|
98
|
|
99 doNotValidateFilteredRecords should we skip validation on filtered records?
|
|
100 warnOnErrors should we just emit warnings on errors instead of terminating the run?
|
|
101
|
|
102 @CITATION_SECTION@
|
|
103 </help>
|
|
104 </tool>
|