Repository 'gatktools'
hg clone https://toolshed.g2.bx.psu.edu/repos/lz_hust/gatktools

Changeset 8:3a8ef2ad0414 (2019-06-01)
Previous changeset 7:5312036ae97e (2019-06-01) Next changeset 9:dcf1482b628c (2019-06-01)
Commit message:
Uploaded
added:
base_recalibrator.xml
b
diff -r 5312036ae97e -r 3a8ef2ad0414 base_recalibrator.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/base_recalibrator.xml Sat Jun 01 07:08:27 2019 -0400
[
b'@@ -0,0 +1,307 @@\n+<tool id="gatk2_base_recalibrator" name="Base Recalibrator" version="@VERSION@.0">\n+  <description>calculates covariates used to recalibrate base quality scores of reads</description>\n+  <macros>\n+    <import>gatk2_macros.xml</import>\n+  </macros>\n+  <expand macro="requirements" />\n+  <expand macro="version_command" />\n+  <command interpreter="python">\n+    gatk2_wrapper.py\n+    --stdout "${output_log}"\n+    -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"\n+    #if str( $reference_source.input_bam.metadata.bam_index ) != "None":\n+        -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index\n+    #end if\n+    -p \'\n+    @JAR_PATH@\n+    -T "BaseRecalibrator"\n+    \\$GATK2_SITE_OPTIONS\n+\n+    ## according to http://www.broadinstitute.org/gatk/guide/article?id=1975\n+    --num_cpu_threads_per_data_thread \\${GALAXY_SLOTS:-8}\n+\n+    ## we set non standards at every run and the user can choose which ones are preferred\n+    ## in our select box both standard options (ContextCovariate, CycleCovariate) are selected by default\n+    --no_standard_covs\n+\n+    #if $reference_source.reference_source_selector != "history":\n+        -R "${reference_source.ref_file.fields.path}"\n+    #end if\n+    #if str($input_recal) != \'None\':\n+        --BQSR "${input_recal}"\n+    #end if\n+    --out "${output_recal}"\n+    #if str( $covariates ) != "None":\n+        #for $cov in str( $covariates ).split( \',\' ):\n+            -cov "${cov}"\n+        #end for\n+    #end if\n+   \'\n+\n+    #set $snp_dataset_provided = False\n+    #set $rod_binding_names = dict()\n+    #for $rod_binding in $rod_bind:\n+        #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == \'custom\':\n+            #set $rod_bind_name = $rod_binding.rod_bind_type.custom_rod_name\n+        #else\n+            #set $rod_bind_name = $rod_binding.rod_bind_type.rod_bind_type_selector\n+        #end if\n+        #if str( $rod_binding.rod_bind_type.rod_bind_type_selector ) == \'dbsnp\':\n+            #set $snp_dataset_provided = True\n+        #end if\n+        #set $rod_binding_names[$rod_bind_name] = $rod_binding_names.get( $rod_bind_name, -1 ) + 1\n+        -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]}"\n+    #end for\n+\n+    #include source=$standard_gatk_options#\n+\n+    ##start analysis specific options\n+    #if $analysis_param_type.analysis_param_type_selector == "advanced":\n+        -p \'\n+        #if $analysis_param_type.default_read_group_type.default_read_group_type_selector == "set":\n+            --default_read_group "${analysis_param_type.default_read_group_type.default_read_group}"\n+        #end if\n+        #if str( $analysis_param_type.default_platform ) != "default":\n+            --default_platform "${analysis_param_type.default_platform}"\n+        #end if\n+        #if str( $analysis_param_type.force_read_group_type.force_read_group_type_selector ) == "set":\n+            --force_read_group "${analysis_param_type.force_read_group_type.force_read_group}"\n+        #end if\n+        #if str( $analysis_param_type.force_platform ) != "default":\n+            --force_platform "${analysis_param_type.force_platform}"\n+        #end if\n+        ${analysis_param_type.exception_if_no_tile}\n+        #if str( $analysis_param_type.solid_options_type.solid_options_type_selector ) == "set":\n+            #if str( $analysis_param_type.solid_options_type.solid_recal_mode ) != "default":\n+                --solid_recal_mode "${analysis_param_type.solid_options_type.solid_recal_mode}"\n+            #end if\n+            #if str( $analysis_param_type.solid_options_type.solid_nocall_strategy ) != "default":\n+                --solid_nocall_strategy "${analysis_param_type.solid_options_type.solid_nocall_strategy}"\n+            #end if\n+        #end if\n+       '..b'ned 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.\n+\n+For more information on base quality score recalibration using the GATK, see this `tool specific page &lt;http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_bqsr_BaseRecalibrator.html&gt;`_.\n+\n+To learn about best practices for variant detection using GATK, see this `overview &lt;http://www.broadinstitute.org/gatk/guide/topic?name=best-practices&gt;`_.\n+\n+If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gatk/guide/topic?name=faqs&gt;`_.\n+\n+------\n+\n+**Inputs**\n+\n+GenomeAnalysisTK: BaseRecalibrator accepts an aligned BAM input file.\n+\n+\n+**Outputs**\n+\n+The output is in CSV format.\n+\n+\n+Go `here &lt;http://www.broadinstitute.org/gatk/guide/topic?name=intro&gt;`_ for details on GATK file formats.\n+\n+-------\n+\n+**Settings**::\n+\n+\n+ default_read_group                               If a read has no read group then default to the provided String.\n+ default_platform                                 If a read has no platform then default to the provided String. Valid options are illumina, 454, and solid.\n+ 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.\n+ force_platform                                   If provided, the platform of EVERY read will be forced to be the provided String. Valid options are illumina, 454, and solid.\n+ window_size_nqs                                  The window size used by MinimumNQSCovariate for its calculation\n+ homopolymer_nback                                The number of previous bases to look at in HomopolymerCovariate\n+ 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\n+ 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)\n+ 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)\n+ recal_file                                       Filename for the input covariates table recalibration .csv file\n+ out                                              The output CSV file\n+ standard_covs                                    Use the standard set of covariates in addition to the ones listed using the -cov argument\n+ 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.\n+\n+@CITATION_SECTION@\n+  </help>\n+  <expand macro="citations" />\n+</tool>\n'