view analyze_covariates.xml @ 2:738bc749f9a3 draft default tip

Added a dependency on R, since the Analyze Covariates tool generates an R script for plotting residual error.
author devteam
date Wed, 02 Apr 2014 16:04:37 -0400
parents 1d427770e7ec
line wrap: on
line source

<tool id="gatk_analyze_covariates" name="Analyze Covariates" version="0.0.5">
  <description>- draw plots</description>
      <requirement type="package" version="1.4">gatk</requirement>
      <requirement type="package" version="2.11.0">R</requirement>
  <command interpreter="python">
   --max_jvm_heap_fraction "1"
   --stdout "${output_log}"
   --html_report_from_directory "${output_html}" "${output_html.files_path}"
   -p 'java 
    -jar "\$JAVA_JAR_PATH/AnalyzeCovariates.jar"
    -recalFile "${input_recal}"
    -outputDir "${output_html.files_path}"
    ##--num_threads 4 ##hard coded, for now
    ##-log "${output_log}"
    ##-Rscript,--path_to_Rscript path_to_Rscript; on path is good enough         
    #if $analysis_param_type.analysis_param_type_selector == "advanced":
        --ignoreQ "${analysis_param_type.ignore_q}"
        --numRG "${analysis_param_type.num_read_groups}"
        --max_quality_score "${analysis_param_type.max_quality_score}"
        --max_histogram_value "${analysis_param_type.max_histogram_value}"
    #end if
    <param name="input_recal" type="data" format="csv" label="Covariates table recalibration file" help="-recalFile,--recal_file &amp;lt;recal_file&amp;gt;" />
    <conditional name="analysis_param_type">
      <param name="analysis_param_type_selector" type="select" label="Basic or Advanced options">
        <option value="basic" selected="True">Basic</option>
        <option value="advanced">Advanced</option>
      <when value="basic">
        <!-- Do nothing here -->
      <when value="advanced">
        <param name="ignore_q" type="integer" value="5" label="Ignore bases with reported quality less than this number." help="-ignoreQ,--ignoreQ &amp;lt;ignoreQ&amp;gt; "/>
        <param name="num_read_groups" type="integer" value="-1" label="Only process N read groups." help="-numRG,--numRG &amp;lt;numRG&amp;gt;"/>
        <param name="max_quality_score" type="integer" value="50" label="Max quality score" help="-maxQ,--max_quality_score &amp;lt;max_quality_score&amp;gt;"/>
        <param name="max_histogram_value" type="integer" value="0" label="Max histogram value" help="-maxHist,--max_histogram_value &amp;lt;max_histogram_value&amp;gt;"/>
        <param name="do_indel_quality" type="boolean" truevalue="--do_indel_quality" falsevalue="" label="Do indel quality" help="--do_indel_quality"/>
    <data format="html" name="output_html" label="${} on ${on_string} (HTML)" />
    <data format="txt" name="output_log" label="${} on ${on_string} (log)" />
          <param name="input_recal" value="gatk/gatk_count_covariates/gatk_count_covariates_out_1.csv" ftype="csv" /> 
          <param name="analysis_param_type_selector" value="basic" />
          <output name="output_html" file="gatk/gatk_analyze_covariates/gatk_analyze_covariates_out_1.html" />
          <output name="output_log" file="gatk/gatk_analyze_covariates/gatk_analyze_covariates_out_1.log.contains" compare="contains" />
**What it does**

Create collapsed versions of the recal csv file and call R scripts to plot residual error versus the various covariates.

For more information on base quality score recalibration using the GATK, see this `tool specific page &lt;;`_.

To learn about best practices for variant detection using GATK, see this `overview &lt;;`_.

If you encounter errors, please view the `GATK FAQ &lt;;`_.



GenomeAnalysisTK: AnalyzeCovariates accepts an recal CSV file.


The output is in CSV and HTML files with links to PDF graphs and a data files.

Go `here &lt;;`_ for details on GATK file formats.



 recal_file             The input recal csv file to analyze
 output_dir             The directory in which to output all the plots and intermediate data files
 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
 path_to_resources      Path to resources folder holding the Sting R scripts.
 ignoreQ                Ignore bases with reported quality less than this number.
 numRG                  Only process N read groups. Default value: -1 (process all read groups)
 max_quality_score      The integer value at which to cap the quality scores, default is 50
 max_histogram_value    If supplied, this value will be the max value of the histogram plots
 do_indel_quality       If supplied, this value will be the max value of the histogram plots