annotate tools/gatk/indel_realigner.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="gatk_indel_realigner" name="Indel Realigner" version="0.0.1">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>- perform local realignment</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">gatk_wrapper.py
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 --stdout "${output_log}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 -p 'java
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 -jar "${GALAXY_DATA_INDEX_DIR}/shared/jars/gatk/GenomeAnalysisTK.jar"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 -T "IndelRealigner"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 ##-quiet ##this appears to have no effect...confirmed by gatk programmers
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 -o "${output_bam}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 -et "NO_ET" ##ET no phone home
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 #if $reference_source.reference_source_selector != "history":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 -R "${reference_source.ref_file.fields.path}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 -LOD "${lod_threshold}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 ${knowns_only}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 #set $rod_binding_names = dict()
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 #if str( $input_dbsnp_rod ) != "None":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 -d "-D" "${input_dbsnp_rod}" "${input_dbsnp_rod.ext}" "dbsnp_rod"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 #for $rod_binding in $rod_bind:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom':
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 -d "-B:${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]}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 #if str( $rod_binding.rod_bind_type.rodToIntervalTrackName ):
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 -p '--rodToIntervalTrackName "${rod_bind_name}"'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 ##start standard gatk options
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 #if $gatk_param_type.gatk_param_type_selector == "advanced":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 #for $sample_metadata in $gatk_param_type.sample_metadata:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 -p '--sample_metadata "${sample_metadata.sample_metadata_file}"'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 #for $read_filter in $gatk_param_type.read_filter:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 -p '--read_filter "${read_filter.read_filter_type.read_filter_type_selector}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 ###raise Exception( str( dir( $read_filter ) ) )
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 #for $name, $param in $read_filter.read_filter_type.iteritems():
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 #if $name not in [ "__current_case__", "read_filter_type_selector" ]:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 --${name} "${param}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 #if str( $gatk_param_type.input_intervals ) != "None":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 -d "-L" "${gatk_param_type.input_intervals}" "${gatk_param_type.input_intervals.ext}" "input_intervals"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 #if str( $gatk_param_type.input_exclude_intervals ) != "None":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 -d "-XL" "${gatk_param_type.input_exclude_intervals}" "${gatk_param_type.input_exclude_intervals.ext}" "input_intervals"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 -p '--BTI_merge_rule "${gatk_param_type.BTI_merge_rule}"'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 -p '--downsampling_type "${gatk_param_type.downsampling_type.downsampling_type_selector}"'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 #if str( $gatk_param_type.downsampling_type.downsampling_type_selector ) != "NONE":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 -p '--${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_type_selector} "${gatk_param_type.downsampling_type.downsample_to_type.downsample_to_value}"'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 -p '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 --baq "${gatk_param_type.baq}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 --baqGapOpenPenalty "${gatk_param_type.baq_gap_open_penalty}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 ${gatk_param_type.use_original_qualities}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 --defaultBaseQualities "${gatk_param_type.default_base_qualities}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 --validation_strictness "${gatk_param_type.validation_strictness}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 --interval_merging "${gatk_param_type.interval_merging}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 #if str( $gatk_param_type.read_group_black_list ) != "None":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 -d "-read_group_black_list" "${gatk_param_type.read_group_black_list}" "txt" "input_read_group_black_list"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 #if $reference_source.reference_source_selector == "history":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 -d "-R" "${reference_source.ref_file}" "${reference_source.ref_file.ext}" "gatk_input"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 ##end standard gatk options
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 ##start analysis specific options
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 -d "-targetIntervals" "${target_intervals}" "${target_intervals.ext}" "gatk_target_intervals"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 -p '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 -targetNotSorted ##always resort input intervals
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 --disable_bam_indexing
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 #if $analysis_param_type.analysis_param_type_selector == "advanced":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 -p '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 --entropyThreshold "${analysis_param_type.entropy_threshold}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 ${analysis_param_type.simplify_bam}
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 --maxIsizeForMovement "${analysis_param_type.max_insert_size_for_movement}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 --maxPositionalMoveAllowed "${analysis_param_type.max_positional_move_allowed}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 --maxConsensuses "${analysis_param_type.max_consensuses}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 --maxReadsForConsensuses "${analysis_param_type.max_reads_for_consensuses}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 --maxReadsForRealignment "${analysis_param_type.max_reads_for_realignment}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 "${analysis_param_type.no_original_alignment_tags}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 '
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 <conditional name="reference_source">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 <option value="cached">Locally cached</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 <option value="history">History</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 <when value="cached">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 <param name="input_bam" type="data" format="bam" label="BAM file">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 <validator type="unspecified_build" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 <validator type="dataset_metadata_in_file" filename="picard_index.loc" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." /> <!-- fixme!!! this needs to be a select -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 <param name="ref_file" type="select" label="Using reference genome">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 <options from_data_table="picard_indexes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 </options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 <when value="history"> <!-- FIX ME!!!! -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 <param name="input_bam" type="data" format="bam" label="BAM file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 <param name="target_intervals" type="data" format="gatk_interval,bed,picard_interval_list" label="Restrict realignment to provided intervals" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 <param name="input_dbsnp_rod" type="data" format="gatk_dbsnp" optional="True" label="dbSNP reference ordered data (ROD)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 <repeat name="rod_bind" title="Binding for reference-ordered data">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 <conditional name="rod_bind_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 <param name="rod_bind_type_selector" type="select" label="Binding Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 <option value="snps" selected="True">SNPs</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 <option value="indels">INDELs</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 <option value="custom">Custom</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 <when value="snps">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 <param name="rodToIntervalTrackName" type="boolean" truevalue="--rodToIntervalTrackName" falsevalue="" label="Use ROD as interval List (-BTI, --rodToIntervalTrackName)" help="Only one ROD may have this option specified" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 <when value="indels">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 <param name="rodToIntervalTrackName" type="boolean" truevalue="--rodToIntervalTrackName" falsevalue="" label="Use ROD as interval List (-BTI, --rodToIntervalTrackName)" help="Only one ROD may have this option specified" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 <when value="custom">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 <param name="rodToIntervalTrackName" type="boolean" truevalue="--rodToIntervalTrackName" falsevalue="" label="Use ROD as interval List (-BTI, --rodToIntervalTrackName)" help="Only one ROD may have this option specified" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146 <param name="lod_threshold" type="float" value="5.0" label="LOD threshold above which the realigner will proceed to realign" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147 <param name="knowns_only" type="boolean" checked="False" truevalue="-knownsOnly" falsevalue="" label="Use only known indels provided as RODs"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
149 <conditional name="gatk_param_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150 <param name="gatk_param_type_selector" type="select" label="Basic or Advanced GATK options">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 <option value="basic" selected="True">Basic</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152 <option value="advanced">Advanced</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
153 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
154 <when value="basic">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
155 <!-- Do nothing here -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
156 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
157 <when value="advanced">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
158 <repeat name="sample_metadata" title="Sample Metadata">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
159 <param name="sample_metadata_file" type="data" format="txt" label="Sample file(s) in JSON format" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
160 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
161 <repeat name="read_filter" title="Read Filter">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
162 <conditional name="read_filter_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
163 <param name="read_filter_type_selector" type="select" label="Read Filter Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
164 <option value="MaxReadLength" selected="True">MaxReadLength</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
165 <option value="ZeroMappingQualityRead">ZeroMappingQualityRead</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
166 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
167 <when value="ZeroMappingQualityRead">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
168 <!-- no extra options -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
169 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
170 <when value="MaxReadLength">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
171 <param name="maxReadLength" type="integer" value="76" label="Max Read Length"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
172 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
173 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
174 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
175 <param name="input_intervals" type="data" format="picard_interval_list" optional="True" label="A list of genomic intervals over which to operate" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
176 <param name="input_exclude_intervals" type="data" format="picard_interval_list" optional="True" label="A list of genomic intervals to exclude from processing" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
177 <param name="BTI_merge_rule" type="select" label="BTI merge rule">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
178 <option value="UNION" selected="True">UNION</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
179 <option value="INTERSECTION">INTERSECTION</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
180 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
181 <conditional name="downsampling_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
182 <param name="downsampling_type_selector" type="select" label="Type of reads downsampling to employ at a given locus" help="Downsampling Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
183 <option value="NONE" selected="True">NONE</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
184 <option value="ALL_READS">ALL_READS</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
185 <option value="BY_SAMPLE">BY_SAMPLE</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
186 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
187 <when value="NONE">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
188 <!-- no more options here -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
189 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
190 <when value="ALL_READS">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
191 <conditional name="downsample_to_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
192 <param name="downsample_to_type_selector" type="select" label="Type of reads downsampling to employ at a given locus" help="Downsampling Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
193 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
194 <option value="downsample_to_coverage">Downsample by Coverage</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
195 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
196 <when value="downsample_to_fraction">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
197 <param name="downsample_to_value" type="float" label="Fraction [0.0-1.0] of reads to downsample to" value="0.1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
198 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
199 <when value="downsample_to_coverage">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
200 <param name="downsample_to_value" type="integer" label="Coverage to downsample to at any given locus" value="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
201 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
202 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
203 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
204 <when value="BY_SAMPLE">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
205 <conditional name="downsample_to_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
206 <param name="downsample_to_type_selector" type="select" label="Type of reads downsampling to employ at a given locus" help="Downsampling Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
207 <option value="downsample_to_fraction" selected="True">Downsample by Fraction</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
208 <option value="downsample_to_coverage">Downsample by Coverage</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
209 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
210 <when value="downsample_to_fraction">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
211 <param name="downsample_to_value" type="float" label="Fraction [0.0-1.0] of reads to downsample to" value="0.1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
212 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
213 <when value="downsample_to_coverage">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
214 <param name="downsample_to_value" type="integer" label="Coverage to downsample to at any given locus" value="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
215 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
216 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
217 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
218 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
219 <param name="baq" type="select" label="Type of BAQ calculation to apply in the engine">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
220 <option value="OFF" selected="True">OFF</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
221 <option value="CALCULATE_AS_NECESSARY">CALCULATE_AS_NECESSARY</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
222 <option value="RECALCULATE">RECALCULATE</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
223 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
224 <param name="baq_gap_open_penalty" type="integer" label="BAQ gap open penalty (Phred Scaled)" value="40" help="Default value is 40. 30 is perhaps better for whole genome call sets."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
225 <param name="use_original_qualities" type="boolean" truevalue="--useOriginalQualities" falsevalue="" label="Use the original base quality scores from the OQ tag" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
226 <param name="default_base_qualities" type="integer" label="Value to be used for all base quality scores, when some are missing" value="-1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
227 <param name="validation_strictness" type="select" label="How strict should we be with validation">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
228 <option value="STRICT" selected="True">STRICT</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
229 <option value="LENIENT">LENIENT</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
230 <option value="SILENT">SILENT</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
231 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
232 <param name="interval_merging" type="select" label="Interval merging rule">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
233 <option value="ALL" selected="True">ALL</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
234 <option value="OVERLAPPING_ONLY">OVERLAPPING_ONLY</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
235 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
236 <param name="read_group_black_list" type="data" format="txt" optional="True" label="Read group black list" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
237 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
238 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
239
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
240 <conditional name="analysis_param_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
241 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
242 <option value="basic" selected="True">Basic</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
243 <option value="advanced">Advanced</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
244 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
245 <when value="basic">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
246 <!-- Do nothing here -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
247 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
248 <when value="advanced">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
249
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
250 <param name="entropy_threshold" type="float" value="0.15" label="percentage of mismatching base quality scores at a position to be considered having high entropy" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
251 <param name="simplify_bam" type="boolean" checked="False" truevalue="-simplifyBAM" falsevalue="" label="Simplify BAM"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
252
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
253 <param name="max_insert_size_for_movement" type="integer" value="3000" label="Maximum insert size of read pairs that we attempt to realign" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
254 <param name="max_positional_move_allowed" type="integer" value="200" label="Maximum positional move in basepairs that a read can be adjusted during realignment" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
255 <param name="max_consensuses" type="integer" value="30" label="Max alternate consensuses to try" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
256 <param name="max_reads_for_consensuses" type="integer" value="120" label="Max reads (chosen randomly) used for finding the potential alternate consensuses" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
257 <param name="max_reads_for_realignment" type="integer" value="20000" label="Max reads allowed at an interval for realignment" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
258 <param name="no_original_alignment_tags" type="boolean" checked="False" truevalue="--noOriginalAlignmentTags" falsevalue="" label="Don't output the original cigar or alignment start tags for each realigned read in the output bam"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
259 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
260 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
261 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
262 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
263 <data format="bam" name="output_bam" label="${tool.name} on ${on_string} (BAM)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
264 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
265 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
266 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
267 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
268 <param name="reference_source_selector" value="history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
269 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
270 <param name="target_intervals" value="gatk/gatk_realigner_target_creator/gatk_realigner_target_creator_out_1.gatk_interval" ftype="gatk_interval" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
271 <param name="input_bam" value="gatk/fake_phiX_reads_1.bam" ftype="bam" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
272 <param name="input_dbsnp_rod" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
273 <param name="rod_bind_type_selector" value="snps" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
274 <param name="rodToIntervalTrackName" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
275 <param name="input_rod" value="gatk/fake_phiX_variant_locations.bed" ftype="bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
276 <param name="lod_threshold" value="5.0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
277 <param name="knowns_only" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
278 <param name="gatk_param_type_selector" value="basic" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
279 <param name="analysis_param_type_selector" value="basic" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
280 <output name="output_bam" file="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.bam" ftype="bam" lines_diff="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
281 <output name="output_log" file="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.log.contains" compare="contains" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
282 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
283 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
284 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
285 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
286
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
287 Performs local realignment of reads based on misalignments due to the presence of indels. Unlike most mappers, this
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
288 walker uses the full alignment context to determine whether an appropriate alternate reference (i.e. indel) exists
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
289 and updates SAMRecords accordingly.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
290
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
291 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
292
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
293 Please cite the website "http://addlink.here" as well as:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
294
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
295 Add citation here 2011.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
296
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
297 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
298
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
299 **Input formats**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
300
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
301 GenomeAnalysisTK: IndelRealigner accepts an aligned BAM and a list of intervals to realign as input files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
302
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
303 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
304
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
305 **Outputs**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
306
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
307 The output is in the BAM format, see http://addlink.here for more details.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
308
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
309 -------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
310
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
311 **Settings**::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
312
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
313 targetIntervals intervals file output from RealignerTargetCreator
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
314 LODThresholdForCleaning LOD threshold above which the cleaner will clean
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
315 entropyThreshold percentage of mismatches at a locus to be considered having high entropy
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
316 out Output bam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
317 bam_compression Compression level to use for writing BAM files
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
318 disable_bam_indexing Turn off on-the-fly creation of indices for output BAM files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
319 simplifyBAM If provided, output BAM files will be simplified to include just key reads for downstream variation discovery analyses (removing duplicates, PF-, non-primary reads), as well stripping all extended tags from the kept reads except the read group identifier
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
320 useOnlyKnownIndels Don't run 'Smith-Waterman' to generate alternate consenses; use only known indels provided as RODs for constructing the alternate references.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
321 maxReadsInMemory max reads allowed to be kept in memory at a time by the SAMFileWriter. Keep it low to minimize memory consumption (but the tool may skip realignment on regions with too much coverage. If it is too low, it may generate errors during realignment); keep it high to maximize realignment (but make sure to give Java enough memory).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
322 maxIsizeForMovement maximum insert size of read pairs that we attempt to realign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
323 maxPositionalMoveAllowed maximum positional move in basepairs that a read can be adjusted during realignment
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
324 maxConsensuses max alternate consensuses to try (necessary to improve performance in deep coverage)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
325 maxReadsForConsensuses max reads used for finding the alternate consensuses (necessary to improve performance in deep coverage)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
326 maxReadsForRealignment max reads allowed at an interval for realignment; if this value is exceeded, realignment is not attempted and the reads are passed to the output file(s) as-is
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
327 noOriginalAlignmentTags Don't output the original cigar or alignment start tags for each realigned read in the output bam.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
328 targetIntervalsAreNotSorted This tool assumes that the target interval list is sorted; if the list turns out to be unsorted, it will throw an exception. Use this argument when your interval list is not sorted to instruct the Realigner to first sort it in memory.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
329
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
330
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
331 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
332 </tool>