annotate realigner_target_creator.xml @ 0:751f4d177d8e

Imported from capsule None
author devteam
date Tue, 01 Apr 2014 09:12:09 -0400
parents
children f202477a521b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="gatk_realigner_target_creator" name="Realigner Target Creator" version="0.0.4">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
2 <description>for use in local realignment</description>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.4">gatk</requirement>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="0.1.18">samtools</requirement>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
7 <macros>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
8 <import>gatk_macros.xml</import>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
9 </macros>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
10 <command interpreter="python">gatk_wrapper.py
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
11 --max_jvm_heap_fraction "1"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
12 --stdout "${output_log}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
13 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
14 #if str( $reference_source.input_bam.metadata.bam_index ) != "None":
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
15 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
16 #end if
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
17 -p 'java
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
18 -jar "${JAVA_JAR_PATH}/GenomeAnalysisTK.jar"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
19 -T "RealignerTargetCreator"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
20 -o "${output_interval}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
21 -et "NO_ET" ##ET no phone home
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
22 --num_threads \${GALAXY_SLOTS:-4}
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
23 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
24 #if $reference_source.reference_source_selector != "history":
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
25 -R "${reference_source.ref_file.fields.path}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
26 #end if
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
27 '
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
28 #set $rod_binding_names = dict()
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
29 #for $rod_binding in $rod_bind:
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
30 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom':
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
31 #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
32 #else
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
33 #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
34 #end if
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
35 #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
36 -d "-known:${rod_bind_name},%(file_type)s" "${rod_binding.rod_bind_type.input_rod}" "${rod_binding.rod_bind_type.input_rod.ext}" "input_${rod_bind_name}_${rod_binding_names[$rod_bind_name]}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
37 #end for
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
38
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
39 #include source=$standard_gatk_options#
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
40 ##start analysis specific options
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
41 #if $analysis_param_type.analysis_param_type_selector == "advanced":
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
42 -p '
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
43 --minReadsAtLocus "${analysis_param_type.minReadsAtLocus}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
44 --windowSize "${analysis_param_type.windowSize}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
45 --mismatchFraction "${analysis_param_type.mismatchFraction}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
46 --maxIntervalSize "${analysis_param_type.maxIntervalSize}"
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
47 '
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
48 #end if
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
49 </command>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
50 <inputs>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
51 <conditional name="reference_source">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
52 <expand macro="reference_source_selector_param" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
53 <when value="cached">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
54 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
55 <validator type="unspecified_build" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
56 <validator type="dataset_metadata_in_data_table" table_name="gatk_picard_indexes" metadata_name="dbkey" metadata_column="dbkey" message="Sequences are not currently available for the specified build." /> <!-- fixme!!! this needs to be a select -->
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
57 </param>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
58 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;" >
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
59 <options from_data_table="gatk_picard_indexes">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
60 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
61 </options>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
62 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
63 </param>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
64 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
65 <when value="history">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
66 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
67 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
68 <options>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
69 <filter type="data_meta" key="dbkey" ref="input_bam" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
70 </options>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
71 </param>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
72 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
73 </conditional>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
74
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
75 <repeat name="rod_bind" title="Binding for reference-ordered data" help="-known,--known &amp;lt;known&amp;gt;">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
76 <conditional name="rod_bind_type">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
77 <param name="rod_bind_type_selector" type="select" label="Binding Type">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
78 <option value="dbsnp" selected="True">dbSNP</option>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
79 <option value="snps">SNPs</option>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
80 <option value="indels">INDELs</option>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
81 <option value="custom">Custom</option>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
82 </param>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
83 <when value="dbsnp">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
84 <param name="input_rod" type="data" format="vcf" label="ROD file" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
85 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
86 <when value="snps">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
87 <param name="input_rod" type="data" format="vcf" label="ROD file" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
88 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
89 <when value="indels">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
90 <param name="input_rod" type="data" format="vcf" label="ROD file" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
91 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
92 <when value="custom">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
93 <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
94 <param name="input_rod" type="data" format="vcf" label="ROD file" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
95 </when>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
96 </conditional>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
97 </repeat>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
98
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
99 <expand macro="gatk_param_type_conditional" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
100
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
101 <expand macro="analysis_type_conditional">
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
102 <param name="windowSize" type="integer" value="10" label="Window size for calculating entropy or SNP clusters (windowSize)" help="-window,--windowSize &amp;lt;windowSize&amp;gt;" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
103 <param name="mismatchFraction" type="float" value="0.15" label="Fraction of base qualities needing to mismatch for a position to have high entropy (mismatchFraction)" help="to disable set to &lt;= 0 or &gt; 1 (-mismatch,--mismatchFraction &amp;lt;mismatchFraction&amp;gt;)"/>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
104 <param name="minReadsAtLocus" type="integer" value="4" label="Minimum reads at a locus to enable using the entropy calculation (minReadsAtLocus)" help="-minReads,--minReadsAtLocus &amp;lt;minReadsAtLocus&amp;gt;" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
105 <param name="maxIntervalSize" type="integer" value="500" label="Maximum interval size" help="-maxInterval,--maxIntervalSize &amp;lt;maxIntervalSize&amp;gt;" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
106 </expand>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
107 </inputs>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
108 <outputs>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
109 <data format="gatk_interval" name="output_interval" label="${tool.name} on ${on_string} (GATK intervals)" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
110 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
111 </outputs>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
112 <tests>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
113 <test>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
114 <param name="reference_source_selector" value="history" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
115 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
116 <param name="input_bam" value="gatk/fake_phiX_reads_1.bam" ftype="bam" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
117 <param name="rod_bind_type_selector" value="dbsnp" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
118 <param name="input_rod" value="gatk/fake_phiX_variant_locations.vcf" ftype="vcf" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
119 <param name="gatk_param_type_selector" value="basic" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
120 <param name="analysis_param_type_selector" value="advanced" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
121 <param name="windowSize" value="10" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
122 <param name="mismatchFraction" value="0.15" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
123 <param name="minReadsAtLocus" value="4" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
124 <param name="maxIntervalSize" value="500" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
125 <output name="output_interval" file="gatk/gatk_realigner_target_creator/gatk_realigner_target_creator_out_1.gatk_interval" />
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
126 <output name="output_log" file="gatk/gatk_realigner_target_creator/gatk_realigner_target_creator_out_1.log.contains" compare="contains"/>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
127 </test>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
128 </tests>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
129 <help>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
130 **What it does**
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
131
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
132 Emits intervals for the Local Indel Realigner to target for cleaning. Ignores 454 reads, MQ0 reads, and reads with consecutive indel operators in the CIGAR string.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
133
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
134 For more information on local realignment around indels using the GATK, see this `tool specific page &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Local_realignment_around_indels&gt;`_.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
135
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
136 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;`_.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
137
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
138 If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Frequently_Asked_Questions&gt;`_.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
139
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
140 ------
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
141
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
142 **Inputs**
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
143
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
144 GenomeAnalysisTK: RealignerTargetCreator accepts an aligned BAM input file.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
145
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
146
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
147 **Outputs**
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
148
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
149 The output is in GATK Interval format.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
150
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
151
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
152 Go `here &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Input_files_for_the_GATK&gt;`_ for details on GATK file formats.
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
153
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
154 -------
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
155
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
156 **Settings**::
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
157
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
158 windowSize window size for calculating entropy or SNP clusters
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
159 mismatchFraction fraction of base qualities needing to mismatch for a position to have high entropy; to disable set to &lt;= 0 or &gt; 1
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
160 minReadsAtLocus minimum reads at a locus to enable using the entropy calculation
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
161 maxIntervalSize maximum interval size
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
162
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
163 @CITATION_SECTION@
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
164 </help>
751f4d177d8e Imported from capsule None
devteam
parents:
diff changeset
165 </tool>