/tools/gatk/variant_recalibrator.xml

https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 431 lines · 389 code · 30 blank · 12 comment · 0 complexity · 1487137eb998e888142622cbe9744cae MD5 · raw file

  1. <tool id="gatk_variant_recalibrator" name="Variant Recalibrator" version="0.0.4">
  2. <description></description>
  3. <requirements>
  4. <requirement type="package" version="1.4">gatk</requirement>
  5. </requirements>
  6. <macros>
  7. <import>gatk_macros.xml</import>
  8. </macros>
  9. <command interpreter="python">gatk_wrapper.py
  10. --max_jvm_heap_fraction "1"
  11. --stdout "${output_log}"
  12. #for $var_count, $variant in enumerate( $reference_source.variants ):
  13. -d "--input:input_${var_count},%(file_type)s" "${variant.input_variants}" "${variant.input_variants.ext}" "input_variants_${var_count}"
  14. #end for
  15. -p 'java
  16. -jar "${GALAXY_DATA_INDEX_DIR}/shared/jars/gatk/GenomeAnalysisTK.jar"
  17. -T "VariantRecalibrator"
  18. --num_threads 4 ##hard coded, for now
  19. -et "NO_ET" ##ET no phone home
  20. ##-log "${output_log}" ##don't use this to log to file, instead directly capture stdout
  21. #if $reference_source.reference_source_selector != "history":
  22. -R "${reference_source.ref_file.fields.path}"
  23. #end if
  24. --recal_file "${output_recal}"
  25. --tranches_file "${output_tranches}"
  26. --rscript_file "${output_rscript}"
  27. '
  28. #set $rod_binding_names = dict()
  29. #for $rod_binding in $rod_bind:
  30. #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'custom':
  31. #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name
  32. #elif str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == 'comp':
  33. #set $rod_bind_name = "comp" + $rod_binding.rod_bind_type.custom_rod_name
  34. #else
  35. #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector
  36. #end if
  37. #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1
  38. #if $rod_binding.rod_bind_type.rod_training_type.rod_training_type_selector == "not_training_truth_known":
  39. -d "--resource:${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]}"
  40. #else:
  41. -d "--resource:${rod_bind_name},%(file_type)s,known=${rod_binding.rod_bind_type.rod_training_type.known},training=${rod_binding.rod_bind_type.rod_training_type.training},truth=${rod_binding.rod_bind_type.rod_training_type.truth},bad=${rod_binding.rod_bind_type.rod_training_type.bad},prior=${rod_binding.rod_bind_type.rod_training_type.prior}" "${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]}"
  42. #end if
  43. #end for
  44. #include source=$standard_gatk_options#
  45. ##start analysis specific options
  46. -p '
  47. #if str( $annotations ) != "None":
  48. #for $annotation in str( $annotations.fields.gatk_value ).split( ',' ):
  49. --use_annotation "${annotation}"
  50. #end for
  51. #end if
  52. #for $additional_annotation in $additional_annotations:
  53. --use_annotation "${additional_annotation.additional_annotation_name}"
  54. #end for
  55. --mode "${mode}"
  56. '
  57. #if $analysis_param_type.analysis_param_type_selector == "advanced":
  58. -p '
  59. --maxGaussians "${analysis_param_type.max_gaussians}"
  60. --maxIterations "${analysis_param_type.max_iterations}"
  61. --numKMeans "${analysis_param_type.num_k_means}"
  62. --stdThreshold "${analysis_param_type.std_threshold}"
  63. --qualThreshold "${analysis_param_type.qual_threshold}"
  64. --shrinkage "${analysis_param_type.shrinkage}"
  65. --dirichlet "${analysis_param_type.dirichlet}"
  66. --priorCounts "${analysis_param_type.prior_counts}"
  67. #if str( $analysis_param_type.bad_variant_selector.bad_variant_selector_type ) == 'percent':
  68. --percentBadVariants "${analysis_param_type.bad_variant_selector.percent_bad_variants}"
  69. #else:
  70. --minNumBadVariants "${analysis_param_type.bad_variant_selector.min_num_bad_variants}"
  71. #end if
  72. --target_titv "${analysis_param_type.target_titv}"
  73. #for $tranche in [ $tranche.strip() for $tranche in str( $analysis_param_type.ts_tranche ).split( ',' ) if $tranche.strip() ]
  74. --TStranche "${tranche}"
  75. #end for
  76. #for $ignore_filter in $analysis_param_type.ignore_filters:
  77. #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.ignore_filter_type_selector )
  78. #if $ignore_filter_name == "custom":
  79. #set $ignore_filter_name = str( $ignore_filter.ignore_filter_type.filter_name )
  80. #end if
  81. --ignore_filter "${ignore_filter_name}"
  82. #end for
  83. --ts_filter_level "${analysis_param_type.ts_filter_level}"
  84. '
  85. #end if
  86. &amp;&amp;
  87. mv "${output_rscript}.pdf" "${output_tranches_pdf}"
  88. </command>
  89. <inputs>
  90. <conditional name="reference_source">
  91. <expand macro="reference_source_selector_param" />
  92. <when value="cached">
  93. <repeat name="variants" title="Variant" min="1" help="-input,--input &amp;lt;input&amp;gt;">
  94. <param name="input_variants" type="data" format="vcf" label="Variant file to recalibrate" />
  95. </repeat>
  96. <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;">
  97. <options from_data_table="gatk_picard_indexes">
  98. <!-- <filter type="data_meta" key="dbkey" ref="variants[0].input_variants" column="dbkey"/> -->
  99. </options>
  100. <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
  101. </param>
  102. </when>
  103. <when value="history"> <!-- FIX ME!!!! -->
  104. <repeat name="variants" title="Variant" min="1" help="-input,--input &amp;lt;input&amp;gt;">
  105. <param name="input_variants" type="data" format="vcf" label="Variant file to recalibrate" />
  106. </repeat>
  107. <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;" />
  108. </when>
  109. </conditional>
  110. <repeat name="rod_bind" title="Binding for reference-ordered data" help="-resource,--resource &amp;lt;resource&amp;gt;">
  111. <conditional name="rod_bind_type">
  112. <param name="rod_bind_type_selector" type="select" label="Binding Type">
  113. <option value="dbsnp" selected="True">dbSNP</option>
  114. <option value="variant">Variants</option>
  115. <option value="snps">SNPs</option>
  116. <option value="indels">INDELs</option>
  117. <option value="hapmap">HapMap</option>
  118. <option value="omni">OMNI</option>
  119. <option value="mask">Mask</option>
  120. <option value="custom">Custom</option>
  121. <option value="comp">Comp</option>
  122. </param>
  123. <when value="variant">
  124. <param name="input_rod" type="data" format="vcf" label="Variant ROD file" />
  125. <conditional name="rod_training_type">
  126. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  127. <option value="is_training_truth_known">Set training/truth/known sites</option>
  128. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  129. </param>
  130. <when value="not_training_truth_known">
  131. <!-- do nothing here -->
  132. </when>
  133. <when value="is_training_truth_known">
  134. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  135. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  136. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  137. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  138. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  139. </when>
  140. </conditional>
  141. </when>
  142. <when value="comp">
  143. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  144. <param name="custom_rod_name" type="text" value="Unnamed" label="ROD Name"/>
  145. <conditional name="rod_training_type">
  146. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  147. <option value="is_training_truth_known">Set training/truth/known sites</option>
  148. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  149. </param>
  150. <when value="not_training_truth_known">
  151. <!-- do nothing here -->
  152. </when>
  153. <when value="is_training_truth_known">
  154. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  155. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  156. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  157. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  158. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  159. </when>
  160. </conditional>
  161. </when>
  162. <when value="mask">
  163. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  164. <conditional name="rod_training_type">
  165. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  166. <option value="is_training_truth_known">Set training/truth/known sites</option>
  167. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  168. </param>
  169. <when value="not_training_truth_known">
  170. <!-- do nothing here -->
  171. </when>
  172. <when value="is_training_truth_known">
  173. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  174. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  175. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  176. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  177. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  178. </when>
  179. </conditional>
  180. </when>
  181. <when value="dbsnp">
  182. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  183. <conditional name="rod_training_type">
  184. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  185. <option value="is_training_truth_known">Set training/truth/known sites</option>
  186. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  187. </param>
  188. <when value="not_training_truth_known">
  189. <!-- do nothing here -->
  190. </when>
  191. <when value="is_training_truth_known">
  192. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  193. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  194. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  195. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  196. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  197. </when>
  198. </conditional>
  199. </when>
  200. <when value="snps">
  201. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  202. <conditional name="rod_training_type">
  203. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  204. <option value="is_training_truth_known">Set training/truth/known sites</option>
  205. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  206. </param>
  207. <when value="not_training_truth_known">
  208. <!-- do nothing here -->
  209. </when>
  210. <when value="is_training_truth_known">
  211. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  212. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  213. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  214. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  215. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  216. </when>
  217. </conditional>
  218. </when>
  219. <when value="hapmap">
  220. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  221. <conditional name="rod_training_type">
  222. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  223. <option value="is_training_truth_known">Set training/truth/known sites</option>
  224. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  225. </param>
  226. <when value="not_training_truth_known">
  227. <!-- do nothing here -->
  228. </when>
  229. <when value="is_training_truth_known">
  230. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  231. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  232. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  233. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  234. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  235. </when>
  236. </conditional>
  237. </when>
  238. <when value="omni">
  239. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  240. <conditional name="rod_training_type">
  241. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  242. <option value="is_training_truth_known">Set training/truth/known sites</option>
  243. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  244. </param>
  245. <when value="not_training_truth_known">
  246. <!-- do nothing here -->
  247. </when>
  248. <when value="is_training_truth_known">
  249. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  250. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  251. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  252. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  253. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  254. </when>
  255. </conditional>
  256. </when>
  257. <when value="indels">
  258. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  259. <conditional name="rod_training_type">
  260. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  261. <option value="is_training_truth_known">Set training/truth/known sites</option>
  262. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  263. </param>
  264. <when value="not_training_truth_known">
  265. <!-- do nothing here -->
  266. </when>
  267. <when value="is_training_truth_known">
  268. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  269. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  270. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  271. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  272. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  273. </when>
  274. </conditional>
  275. </when>
  276. <when value="custom">
  277. <param name="custom_rod_name" type="text" value="Unknown" label="ROD Name"/>
  278. <param name="input_rod" type="data" format="vcf" label="ROD file" />
  279. <conditional name="rod_training_type">
  280. <param name="rod_training_type_selector" type="select" label="Use as training/truth/known sites">
  281. <option value="is_training_truth_known">Set training/truth/known sites</option>
  282. <option value="not_training_truth_known" selected="True">Don't Set options</option>
  283. </param>
  284. <when value="not_training_truth_known">
  285. <!-- do nothing here -->
  286. </when>
  287. <when value="is_training_truth_known">
  288. <param name="known" type="boolean" label="Is Known Site" truevalue="true" falsevalue="false"/>
  289. <param name="training" type="boolean" label="Is Training Site" truevalue="true" falsevalue="false"/>
  290. <param name="truth" type="boolean" label="Is Truth Site" truevalue="true" falsevalue="false"/>
  291. <param name="bad" type="boolean" label="Is Bad Site" truevalue="true" falsevalue="false"/>
  292. <param name="prior" type="float" label="prior probability of being true" value="12.0"/>
  293. </when>
  294. </conditional>
  295. </when>
  296. </conditional>
  297. </repeat>
  298. <param name="annotations" type="select" multiple="True" display="checkboxes" label="annotations which should used for calculations" help="-an,--use_annotation &amp;lt;use_annotation&amp;gt;">
  299. <!-- load the available annotations from an external configuration file, since additional ones can be added to local installs -->
  300. <options from_data_table="gatk_annotations">
  301. <filter type="multiple_splitter" column="tools_valid_for" separator=","/>
  302. <filter type="static_value" value="VariantRecalibrator" column="tools_valid_for"/>
  303. </options>
  304. </param>
  305. <repeat name="additional_annotations" title="Additional annotation" help="-an,--use_annotation &amp;lt;use_annotation&amp;gt;">
  306. <param name="additional_annotation_name" type="text" value="" label="Annotation name" />
  307. </repeat>
  308. <param name="mode" type="select" label="Recalibration mode" help="-mode,--mode &amp;lt;mode&amp;gt;">
  309. <option value="SNP" selected="True">SNP</option>
  310. <option value="INDEL">INDEL</option>
  311. <option value="BOTH">BOTH</option>
  312. </param>
  313. <expand macro="gatk_param_type_conditional" />
  314. <expand macro="analysis_type_conditional">
  315. <param name="max_gaussians" type="integer" label="maximum number of Gaussians to try during variational Bayes Algorithm" value="10" help="-mG,--maxGaussians &amp;lt;maxGaussians&amp;gt;"/>
  316. <param name="max_iterations" type="integer" label="maximum number of maximum number of VBEM iterations to be performed in variational Bayes Algorithm" value="100" help="-mI,--maxIterations &amp;lt;maxIterations&amp;gt;"/>
  317. <param name="num_k_means" type="integer" label="number of k-means iterations to perform in order to initialize the means of the Gaussians in the Gaussian mixture model" value="30" help="-nKM,--numKMeans &amp;lt;numKMeans&amp;gt;"/>
  318. <param name="std_threshold" type="float" label="If a variant has annotations more than -std standard deviations away from mean then don't use it for building the Gaussian mixture model." value="8.0" help="-std,--stdThreshold &amp;lt;stdThreshold&amp;gt;"/>
  319. <param name="qual_threshold" type="float" label="If a known variant has raw QUAL value less than -qual then don't use it for building the Gaussian mixture model." value="80.0" help="-qual,--qualThreshold &amp;lt;qualThreshold&amp;gt;"/>
  320. <param name="shrinkage" type="float" label="shrinkage parameter in variational Bayes algorithm" value="1.0" help="-shrinkage,--shrinkage &amp;lt;shrinkage&amp;gt;"/>
  321. <param name="dirichlet" type="float" label="dirichlet parameter in variational Bayes algorithm" value="0.001" help="-dirichlet,--dirichlet &amp;lt;dirichlet&amp;gt;"/>
  322. <param name="prior_counts" type="float" label="number of prior counts to use in variational Bayes algorithm" value="20.0" help="-priorCounts,--priorCounts &amp;lt;priorCounts&amp;gt;"/>
  323. <conditional name="bad_variant_selector">
  324. <param name="bad_variant_selector_type" type="select" label="How to specify bad variants">
  325. <option value="percent" selected="True">Percent</option>
  326. <option value="min_num">Number</option>
  327. </param>
  328. <when value="percent">
  329. <param name="percent_bad_variants" type="float" label="percentage of the worst scoring variants to use when building the Gaussian mixture model of bad variants. 0.07 means bottom 7 percent." value="0.03" help="-percentBad,--percentBadVariants &amp;lt;percentBadVariants&amp;gt;"/>
  330. </when>
  331. <when value="min_num">
  332. <param name="min_num_bad_variants" type="integer" label="minimum amount of worst scoring variants to use when building the Gaussian mixture model of bad variants. Will override -percentBad arugment if necessary" value="2000" help="-minNumBad,--minNumBadVariants &amp;lt;minNumBadVariants&amp;gt;"/>
  333. </when>
  334. </conditional>
  335. <param name="target_titv" type="float" label="expected novel Ti/Tv ratio to use when calculating FDR tranches and for display on optimization curve output figures. (approx 2.15 for whole genome experiments). ONLY USED FOR PLOTTING PURPOSES!" value="2.15" help="-titv,--target_titv &amp;lt;target_titv&amp;gt;"/>
  336. <param name="ts_tranche" type="text" label="levels of novel false discovery rate (FDR, implied by ti/tv) at which to slice the data. (in percent, that is 1.0 for 1 percent)" value="100.0, 99.9, 99.0, 90.0" help="-tranche,--TStranche &amp;lt;TStranche&amp;gt;"/>
  337. <repeat name="ignore_filters" title="Ignore Filter" help="-ignoreFilter,--ignore_filter &amp;lt;ignore_filter&amp;gt;">
  338. <conditional name="ignore_filter_type">
  339. <param name="ignore_filter_type_selector" type="select" label="Filter Type">
  340. <option value="HARD_TO_VALIDATE">HARD_TO_VALIDATE</option>
  341. <option value="LowQual" >LowQual</option>
  342. <option value="custom" selected="True">Other</option>
  343. </param>
  344. <when value="custom">
  345. <param name="filter_name" type="text" value="" label="Filter name"/>
  346. </when>
  347. <when value="HARD_TO_VALIDATE" />
  348. <when value="LowQual" />
  349. </conditional>
  350. </repeat>
  351. <param name="ts_filter_level" type="float" label="truth sensitivity level at which to start filtering, used here to indicate filtered variants in plots" value="99.0" help="-ts_filter_level,--ts_filter_level &amp;lt;ts_filter_level&amp;gt;"/>
  352. </expand>
  353. </inputs>
  354. <outputs>
  355. <data format="gatk_recal" name="output_recal" label="${tool.name} on ${on_string} (Recalibration File)" />
  356. <data format="gatk_tranche" name="output_tranches" label="${tool.name} on ${on_string} (Tranches File)" />
  357. <data format="txt" name="output_rscript" label="${tool.name} on ${on_string} (RScript File)" />
  358. <data format="pdf" name="output_tranches_pdf" label="${tool.name} on ${on_string} (PDF File)" />
  359. <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
  360. </outputs>
  361. <tests>
  362. <!-- ADD TESTS -->
  363. </tests>
  364. <help>
  365. **What it does**
  366. Takes variant calls as .vcf files, learns a Gaussian mixture model over the variant annotations and evaluates the variant -- assigning an informative lod score
  367. For more information on using the VariantRecalibrator module, see this `tool specific page &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Variant_quality_score_recalibration&gt;`_.
  368. 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;`_.
  369. If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Frequently_Asked_Questions&gt;`_.
  370. ------
  371. **Inputs**
  372. GenomeAnalysisTK: VariantRecalibrator accepts a variant input file.
  373. **Outputs**
  374. The output is in VCF format.
  375. Go `here &lt;http://www.broadinstitute.org/gsa/wiki/index.php/Input_files_for_the_GATK&gt;`_ for details on GATK file formats.
  376. -------
  377. **Settings**::
  378. tranches_file The output tranches file used by ApplyRecalibration
  379. use_annotation The names of the annotations which should used for calculations
  380. mode Recalibration mode to employ: 1.) SNP for recalibrating only snps (emitting indels untouched in the output VCF); 2.) INDEL for indels; and 3.) BOTH for recalibrating both snps and indels simultaneously. (SNP|INDEL|BOTH)
  381. maxGaussians The maximum number of Gaussians to try during variational Bayes algorithm
  382. maxIterations The maximum number of VBEM iterations to be performed in variational Bayes algorithm. Procedure will normally end when convergence is detected.
  383. numKMeans The number of k-means iterations to perform in order to initialize the means of the Gaussians in the Gaussian mixture model.
  384. stdThreshold If a variant has annotations more than -std standard deviations away from mean then don't use it for building the Gaussian mixture model.
  385. qualThreshold If a known variant has raw QUAL value less than -qual then don't use it for building the Gaussian mixture model.
  386. shrinkage The shrinkage parameter in variational Bayes algorithm.
  387. dirichlet The dirichlet parameter in variational Bayes algorithm.
  388. priorCounts The number of prior counts to use in variational Bayes algorithm.
  389. percentBadVariants What percentage of the worst scoring variants to use when building the Gaussian mixture model of bad variants. 0.07 means bottom 7 percent.
  390. minNumBadVariants The minimum amount of worst scoring variants to use when building the Gaussian mixture model of bad variants. Will override -percentBad arugment if necessary.
  391. recal_file The output recal file used by ApplyRecalibration
  392. target_titv The expected novel Ti/Tv ratio to use when calculating FDR tranches and for display on optimization curve output figures. (approx 2.15 for whole genome experiments). ONLY USED FOR PLOTTING PURPOSES!
  393. TStranche The levels of novel false discovery rate (FDR, implied by ti/tv) at which to slice the data. (in percent, that is 1.0 for 1 percent)
  394. ignore_filter If specified the optimizer will use variants even if the specified filter name is marked in the input VCF file
  395. path_to_Rscript The path to your implementation of Rscript. For Broad users this is maybe /broad/tools/apps/R-2.6.0/bin/Rscript
  396. rscript_file The output rscript file generated by the VQSR to aid in visualization of the input data and learned model
  397. path_to_resources Path to resources folder holding the Sting R scripts.
  398. ts_filter_level The truth sensitivity level at which to start filtering, used here to indicate filtered variants in plots
  399. @CITATION_SECTION@
  400. </help>
  401. </tool>