annotate count_covariates.xml @ 0:14e304b70425 draft default tip

Imported from capsule None
author devteam
date Tue, 01 Apr 2014 10:51:01 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="gatk_count_covariates" name="Count Covariates" version="0.0.5">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
2 <description>on BAM files</description>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.4">gatk</requirement>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="0.1.18">samtools</requirement>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
7 <macros>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
8 <import>gatk_macros.xml</import>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
9 </macros>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
10 <command interpreter="python">gatk_wrapper.py
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
11 --max_jvm_heap_fraction "1"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
12 --stdout "${output_log}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
13 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
14 #if str( $reference_source.input_bam.metadata.bam_index ) != "None":
14e304b70425 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
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
16 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
17 -p 'java
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
18 -jar "\$JAVA_JAR_PATH/GenomeAnalysisTK.jar"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
19 -T "CountCovariates"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
20 --num_threads \${GALAXY_SLOTS:-4}
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
21 -et "NO_ET" ##ET no phone home
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
22 ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
23 #if $reference_source.reference_source_selector != "history":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
24 -R "${reference_source.ref_file.fields.path}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
25 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
26 --recal_file "${output_recal}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
27 ${standard_covs}
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
28 #if str( $covariates ) != "None":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
29 #for $cov in str( $covariates ).split( ',' ):
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
30 -cov "${cov}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
31 #end for
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
32 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
33 '
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
34
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
35 #set $snp_dataset_provided = False
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
36 #set $rod_binding_names = dict()
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
37 #for $rod_binding in $rod_bind:
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
38 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom':
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
39 #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
40 #else
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
41 #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
42 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
43 #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'dbsnp':
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
44 #set $snp_dataset_provided = True
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
45 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
46 #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
47 -d "--knownSites:${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]}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
48 #end for
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
49
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
50 #include source=$standard_gatk_options#
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
51
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
52 ##start analysis specific options
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
53 #if $analysis_param_type.analysis_param_type_selector == "advanced":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
54 -p '
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
55 #if $analysis_param_type.default_read_group_type.default_read_group_type_selector == "set":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
56 --default_read_group "${analysis_param_type.default_read_group_type.default_read_group}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
57 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
58 #if str( $analysis_param_type.default_platform ) != "default":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
59 --default_platform "${analysis_param_type.default_platform}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
60 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
61 #if str( $analysis_param_type.force_read_group_type.force_read_group_type_selector ) == "set":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
62 --force_read_group "${analysis_param_type.force_read_group_type.force_read_group}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
63 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
64 #if str( $analysis_param_type.force_platform ) != "default":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
65 --force_platform "${analysis_param_type.force_platform}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
66 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
67 ${analysis_param_type.exception_if_no_tile}
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
68 #if str( $analysis_param_type.solid_options_type.solid_options_type_selector ) == "set":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
69 #if str( $analysis_param_type.solid_options_type.solid_recal_mode ) != "default":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
70 --solid_recal_mode "${analysis_param_type.solid_options_type.solid_recal_mode}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
71 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
72 #if str( $analysis_param_type.solid_options_type.solid_nocall_strategy ) != "default":
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
73 --solid_nocall_strategy "${analysis_param_type.solid_options_type.solid_nocall_strategy}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
74 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
75 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
76 --window_size_nqs "${analysis_param_type.window_size_nqs}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
77 --homopolymer_nback "${analysis_param_type.homopolymer_nback}"
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
78 '
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
79 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
80 #if not $snp_dataset_provided:
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
81 -p '--run_without_dbsnp_potentially_ruining_quality'
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
82 #end if
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
83 </command>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
84 <inputs>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
85 <conditional name="reference_source">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
86 <expand macro="reference_source_selector_param" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
87 <when value="cached">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
88 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
89 <validator type="unspecified_build" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
90 <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 -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
91 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
92 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;" >
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
93 <options from_data_table="gatk_picard_indexes">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
94 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
95 </options>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
96 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
97 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
98 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
99 <when value="history">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
100 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
101 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
102 <options>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
103 <filter type="data_meta" key="dbkey" ref="input_bam" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
104 </options>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
105 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
106 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
107 </conditional>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
108 <param name="standard_covs" type="boolean" truevalue="--standard_covs" falsevalue="" label="Use the standard set of covariates in addition to the ones selected" help="-standard,--standard_covs" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
109 <param name="covariates" type="select" multiple="True" display="checkboxes" label="Covariates to be used in the recalibration" help="-cov,--covariate &amp;lt;covariate&amp;gt;" >
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
110 <!-- might we want to load the available covariates from an external configuration file, since additional ones can be added to local installs? -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
111 <option value="ReadGroupCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
112 <option value="QualityScoreCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
113 <option value="CycleCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
114 <option value="DinucCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
115 <!-- covariates below were pulled from list option -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
116 <option value="HomopolymerCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
117 <option value="GCContentCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
118 <option value="MappingQualityCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
119 <option value="MinimumNQSCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
120 <option value="PositionCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
121 <option value="PrimerRoundCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
122 <option value="TileCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
123 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
124
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
125 <repeat name="rod_bind" title="Binding for reference-ordered data" help="-knownSites,--knownSites &amp;lt;knownSites&amp;gt;">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
126 <conditional name="rod_bind_type">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
127 <param name="rod_bind_type_selector" type="select" label="Binding Type">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
128 <option value="dbsnp" selected="True">dbSNP</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
129 <option value="snps">SNPs</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
130 <option value="indels">INDELs</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
131 <option value="mask">Mask</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
132 <option value="custom">Custom</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
133 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
134 <when value="dbsnp">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
135 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
136 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
137 <when value="snps">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
138 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
139 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
140 <when value="indels">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
141 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
142 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
143 <when value="mask">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
144 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
145 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
146 <when value="custom">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
147 <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
148 <param name="input_rod" type="data" format="vcf,gatk_dbsnp,bed" label="ROD file" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
149 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
150 </conditional>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
151 </repeat>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
152
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
153 <expand macro="gatk_param_type_conditional" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
154
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
155 <expand macro="analysis_type_conditional">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
156 <conditional name="default_read_group_type">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
157 <param name="default_read_group_type_selector" type="select" label="Set default Read Group" help="--default_read_group">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
158 <option value="default" selected="True">Don't Set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
159 <option value="set">Set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
160 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
161 <when value="default">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
162 <!-- do nothing here -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
163 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
164 <when value="set">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
165 <param name="default_read_group" type="text" value="Unknown" label="If a read has no read group then default to the provided String"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
166 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
167 </conditional>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
168 <param name="default_platform" type="select" label="Set default Platform" help="--default_platform">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
169 <option value="default" selected="True">Don't Set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
170 <option value="illumina">illumina</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
171 <option value="454">454</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
172 <option value="solid">solid</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
173 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
174 <conditional name="force_read_group_type">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
175 <param name="force_read_group_type_selector" type="select" label="Force Read Group" help="--force_read_group">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
176 <option value="default" selected="True">Don't Force</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
177 <option value="set">Force</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
178 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
179 <when value="default">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
180 <!-- do nothing here -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
181 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
182 <when value="set">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
183 <param name="force_read_group" type="text" value="Unknown" label="If provided, the read group ID of EVERY read will be forced to be the provided String."/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
184 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
185 </conditional>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
186 <param name="force_platform" type="select" label="Force Platform" help="--force_platform">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
187 <option value="default" selected="True">Don't Force</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
188 <option value="illumina">illumina</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
189 <option value="454">454</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
190 <option value="solid">solid</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
191 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
192 <param name="exception_if_no_tile" type="boolean" checked="False" truevalue="--exception_if_no_tile" falsevalue="" label="Throw an exception when no tile can be found" help="--exception_if_no_tile"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
193 <conditional name="solid_options_type">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
194 <param name="solid_options_type_selector" type="select" label="Set SOLiD specific options">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
195 <option value="default" selected="True">Don't Set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
196 <option value="set">Set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
197 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
198 <when value="default">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
199 <!-- do nothing here -->
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
200 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
201 <when value="set">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
202 <param name="solid_recal_mode" type="select" label="How should we recalibrate solid bases in which the reference was inserted" help="-sMode,--solid_recal_mode &amp;lt;solid_recal_mode&amp;gt;">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
203 <option value="default" selected="True">Don't set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
204 <option value="DO_NOTHING">DO_NOTHING</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
205 <option value="SET_Q_ZERO">SET_Q_ZERO</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
206 <option value="SET_Q_ZERO_BASE_N">SET_Q_ZERO_BASE_N</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
207 <option value="REMOVE_REF_BIAS">REMOVE_REF_BIAS</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
208 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
209 <param name="solid_nocall_strategy" type="select" label="Behavior of the recalibrator when it encounters no calls" help="-solid_nocall_strategy,--solid_nocall_strategy &amp;lt;solid_nocall_strategy&amp;gt;">
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
210 <option value="default" selected="True">Don't set</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
211 <option value="THROW_EXCEPTION">THROW_EXCEPTION</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
212 <option value="LEAVE_READ_UNRECALIBRATED">LEAVE_READ_UNRECALIBRATED</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
213 <option value="PURGE_READ">PURGE_READ</option>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
214 </param>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
215 </when>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
216 </conditional>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
217 <param name="window_size_nqs" type="integer" value="5" label="Window size used by MinimumNQSCovariate" help="window_size_nqs"/>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
218 <param name="homopolymer_nback" type="integer" value="7" label="number of previous bases to look at in HomopolymerCovariate" help="-nback,--homopolymer_nback &amp;lt;homopolymer_nback&amp;gt;" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
219 </expand>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
220 </inputs>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
221 <outputs>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
222 <data format="csv" name="output_recal" label="${tool.name} on ${on_string} (Covariate File)" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
223 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
224 </outputs>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
225 <tests>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
226 <test>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
227 <param name="reference_source_selector" value="history" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
228 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
229 <param name="input_bam" value="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.bam" ftype="bam" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
230 <param name="rod_bind_type_selector" value="dbsnp" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
231 <param name="input_rod" value="gatk/fake_phiX_variant_locations.bed" ftype="bed" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
232 <param name="standard_covs" value="True" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
233 <param name="covariates" value="ReadGroupCovariate,HomopolymerCovariate,MinimumNQSCovariate,PositionCovariate" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
234 <param name="gatk_param_type_selector" value="basic" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
235 <param name="analysis_param_type_selector" value="basic" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
236 <output name="output_recal" file="gatk/gatk_count_covariates/gatk_count_covariates_out_1.csv" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
237 <output name="output_log" file="gatk/gatk_count_covariates/gatk_count_covariates_out_1.log.contains" compare="contains" />
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
238 </test>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
239 </tests>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
240 <help>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
241 .. class:: warningmark
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
242
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
243 "This calculation is critically dependent on being able to skip over known variant sites. Please provide a dbSNP ROD or a VCF file containing known sites of genetic variation."
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
244 However, if you do not provide this file, the '--run_without_dbsnp_potentially_ruining_quality' flag will be automatically used, and the command will be allowed to run.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
245
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
246 **What it does**
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
247
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
248 This walker is designed to work as the first pass in a two-pass processing step. It does a by-locus traversal operating only at sites that are not in dbSNP. We assume that all reference mismatches we see are therefore errors and indicative of poor base quality. This walker generates tables based on various user-specified covariates (such as read group, reported quality score, cycle, and dinucleotide) Since there is a large amount of data one can then calculate an empirical probability of error given the particular covariates seen at this site, where p(error) = num mismatches / num observations The output file is a CSV list of (the several covariate values, num observations, num mismatches, empirical quality score) The first non-comment line of the output file gives the name of the covariates that were used for this calculation. Note: ReadGroupCovariate and QualityScoreCovariate are required covariates and will be added for the user regardless of whether or not they were specified Note: This walker is designed to be used in conjunction with TableRecalibrationWalker.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
249
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
250 For more information on base quality score recalibration using the GATK, see this `tool specific page &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Base_quality_score_recalibration&gt;`_.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
251
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
252 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;`_.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
253
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
254 If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Frequently_Asked_Questions&gt;`_.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
255
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
256 ------
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
257
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
258 **Inputs**
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
259
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
260 GenomeAnalysisTK: CountCovariates accepts an aligned BAM input file.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
261
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
262
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
263 **Outputs**
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
264
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
265 The output is in CSV format.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
266
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
267
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
268 Go `here &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Input_files_for_the_GATK&gt;`_ for details on GATK file formats.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
269
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
270 -------
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
271
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
272 **Settings**::
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
273
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
274
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
275 default_read_group If a read has no read group then default to the provided String.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
276 default_platform If a read has no platform then default to the provided String. Valid options are illumina, 454, and solid.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
277 force_read_group If provided, the read group ID of EVERY read will be forced to be the provided String. This is useful to collapse all data into a single read group.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
278 force_platform If provided, the platform of EVERY read will be forced to be the provided String. Valid options are illumina, 454, and solid.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
279 window_size_nqs The window size used by MinimumNQSCovariate for its calculation
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
280 homopolymer_nback The number of previous bases to look at in HomopolymerCovariate
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
281 exception_if_no_tile If provided, TileCovariate will throw an exception when no tile can be found. The default behavior is to use tile = -1
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
282 solid_recal_mode How should we recalibrate solid bases in whichthe reference was inserted? Options = DO_NOTHING, SET_Q_ZERO, SET_Q_ZERO_BASE_N, or REMOVE_REF_BIAS (DO_NOTHING|SET_Q_ZERO|SET_Q_ZERO_BASE_N|REMOVE_REF_BIAS)
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
283 solid_nocall_strategy Defines the behavior of the recalibrator when it encounters no calls in the color space. Options = THROW_EXCEPTION, LEAVE_READ_UNRECALIBRATED, or PURGE_READ (THROW_EXCEPTION|LEAVE_READ_UNRECALIBRATED|PURGE_READ)
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
284 recal_file Filename for the input covariates table recalibration .csv file
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
285 out The output CSV file
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
286 recal_file Filename for the outputted covariates table recalibration file
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
287 standard_covs Use the standard set of covariates in addition to the ones listed using the -cov argument
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
288 run_without_dbsnp_potentially_ruining_quality If specified, allows the recalibrator to be used without a dbsnp rod. Very unsafe and for expert users only.
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
289
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
290 @CITATION_SECTION@
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
291 </help>
14e304b70425 Imported from capsule None
devteam
parents:
diff changeset
292 </tool>