annotate variant_validate.xml @ 15:01ff8dd37d4d draft default tip

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