diff correctGCBias.xml @ 18:5ea8782d650c draft

Uploaded
author bgruening
date Mon, 03 Feb 2014 13:44:35 -0500
parents b4c5dd45778a
children 69ff16ba27bd
line wrap: on
line diff
--- a/correctGCBias.xml	Sat Dec 21 14:26:06 2013 -0500
+++ b/correctGCBias.xml	Mon Feb 03 13:44:35 2014 -0500
@@ -1,8 +1,9 @@
-<tool id="deeptools_correctGCBias" name="correctGCBias" version="1.0.2">
+<tool id="deeptools_correctGCBias" name="correctGCBias" version="1.0.3">
     <description>uses the output from computeGCBias to generate corrected BAM files</description>
     <expand macro="requirements" />
     <expand macro="stdio" />
     <macros>
+        <token name="@BINARY@">correctGCBias</token>
         <import>deepTools_macros.xml</import>
     </macros>
     <command>
@@ -32,15 +33,17 @@
             --effectiveGenomeSize $effectiveGenomeSize.effectiveGenomeSize_opt
         #end if
 
+        #if str(region).strip() != '':
+            --region 'region'
+        #end if
+
         #if $advancedOpt.showAdvancedOpt == "yes":
-            #if str($advancedOpt.region.value) != '':
-                --region '$advancedOpt.region'
-            #end if
             --binSize '$advancedOpt.binSize'  
         #end if
 
-        #set newoutFileName="corrected."+str($outFileFormat)
-        --correctedFile $newoutFileName;
+        ###set newoutFileName="corrected."+str($outFileFormat)
+        ##--correctedFile $newoutFileName;
+        --correctedFile "corrected.bam";
 
         mv $newoutFileName $outFileName
     </command>
@@ -50,11 +53,14 @@
         <expand macro="reference_genome_source" />
         <expand macro="effectiveGenomeSize" />
 
+        <!--
         <param name="outFileFormat" type="select" label="File format of the output">
             <option value="bam">bam</option>
             <option value="bw">bigwig</option>
             <option value="bg">bedgraph</option>
         </param>
+        -->
+        <expand macro="region_limit_operation" />
 
         <conditional name="advancedOpt">
             <param name="showAdvancedOpt" type="select" label="Show advanced options" >
@@ -63,10 +69,6 @@
             </param>
             <when value="no" />
             <when value="yes">
-                <param name="region" type="text" value=""
-                    label="Region of the genome to limit the operation to"
-                    help="This is useful when testing parameters to reduce the computing time. The format is chr:start:end, for example &quot;chr10&quot; or &quot;chr10:456700:891000&quot;" />
-
                 <param name="binSize" type="integer" value="50" min="1" 
                     label="Bin size in bp"
                     help="Size of the bins in bp for the ouput of the bigwig/bedgraph file."/>
@@ -75,11 +77,11 @@
     </inputs>
     <outputs>
         <data format="bam" name="outFileName">
-            <change_format>
+            <!--<change_format>
                 <when input="outFileFormat" value="bw" format="bigwig" />
                 <when input="outFileFormat" value="bam" format="bam" />
                 <when input="outFileFormat" value="bg" format="bedgraph" />
-            </change_format>
+            </change_format>-->
         </data>
     </outputs>
     <help>
@@ -89,14 +91,18 @@
 This tool requires the output from computeGCBias to correct the given BAM files according to the method proposed by Benjamini and Speed (2012). Nucleic Acids Res.
 The resulting BAM files can be used in any downstream analyses, but be aware that you should not filter out duplicates from here on.
 
+
+You can find more details in the `correctGCBias wiki`_.
+
+.. _correctGCBias wiki: https://github.com/fidelram/deepTools/wiki/QC#wiki-correctGCbias
+
+
 **Output files**:
 
 - GC-normalized BAM file
 
 -----
 
-.. class:: infomark
-
 @REFERENCES@
 
     </help>