10
|
1 <tool id="deeptools_bigwigCompare" name="bigwigCompare" version="1.0.2">
|
0
|
2 <description>normalizes and compares two bigWig files to obtain the ratio, log2ratio or difference</description>
|
|
3 <expand macro="requirements"/>
|
10
|
4 <expand macro="stdio" />
|
0
|
5 <macros>
|
|
6 <import>deepTools_macros.xml</import>
|
|
7 </macros>
|
|
8 <command>
|
|
9 bigwigCompare
|
|
10
|
|
11 @THREADS@
|
|
12
|
|
13 --bigwig1 '$bigwigFile1'
|
|
14 --bigwig2 '$bigwigFile2'
|
|
15
|
|
16 --outFileName '$outFileName'
|
|
17 --outFileFormat '$outFileFormat'
|
|
18
|
|
19 --ratio $comparison_type
|
|
20
|
|
21 #if $advancedOpt.showAdvancedOpt == "yes":
|
|
22 #if str($advancedOpt.region.value) != '':
|
|
23 --region '$advancedOpt.region'
|
|
24 #end if
|
|
25
|
|
26 --missingDataAsZero $advancedOpt.missingDataAsZero
|
|
27 --scaleFactors '$advancedOpt.scaleFactor1:$advancedOpt.scaleFactor2'
|
|
28 --pseudocount '$advancedOpt.pseudocount'
|
|
29 --binSize $advancedOpt.binSize
|
|
30
|
|
31 #end if
|
|
32 </command>
|
|
33 <inputs>
|
|
34 <param name="bigwigFile1" format="bigwig" type="data" label="Treatment bigwig file" />
|
9
|
35 <param name="bigwigFile2" format="bigwig" type="data" label="bigWig file" />
|
0
|
36
|
|
37 <param name="comparison_type" type="select"
|
|
38 label="How to compare the two files"
|
|
39 help="The reciprocal ratio returns the negative of the inverse of the ratio if the ratio is less than 0. The resulting values are interpreted as negative fold changes." >
|
|
40 <option value="log2" selected="true">log2 ratio</option>
|
|
41 <option value="ratio">simple ratio</option>
|
|
42 <option value="subtract">difference (subtract input from treatment)</option>
|
|
43 <option value="add">sum</option>
|
|
44 <option value="reciprocal_ratio">reciprocal ratio</option>
|
|
45 </param>
|
|
46
|
|
47 <param name="outFileFormat" type="select" label="Coverage file format">
|
|
48 <option value="bigwig" selected="true">bigwig</option>
|
|
49 <option value="bedgraph">bedgraph</option>
|
|
50 </param>
|
|
51
|
|
52 <conditional name="advancedOpt">
|
|
53 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
|
|
54 <option value="no" selected="true">no</option>
|
|
55 <option value="yes">yes</option>
|
|
56 </param>
|
|
57 <when value="no" />
|
|
58 <when value="yes">
|
|
59 <param name="binSize" type="integer" value="50" min="1"
|
|
60 label="Bin size in bp"
|
|
61 help="Size of the bins in bp for the ouput of the bigwig/bedgraph file "/>
|
|
62
|
|
63 <param name="region" type="text" value=""
|
|
64 label="Region of the genome to limit the operation to"
|
|
65 help="This is useful when testing parameters to reduce the computing time. The format is chr:start:end, for example "chr10" or "chr10:456700:891000"" />
|
|
66
|
|
67 <param name="missingDataAsZero" type="boolean" truevalue="yes" falsevalue="no" checked="True"
|
|
68 label ="Treat missing data as zero"
|
|
69 help ="This parameter determines if missing data should be replaced with a zero. If set to "no", missing data will be ignored and will not be included in the output file at all. Missing data is defined as those regions for which no value exists in *any* of the bigwig files. The decision to include or exclude missing data depends on the interpretation of the data. Missing data in a bigwig file may mean that there is no information available for certain regions, for example a repetitive region that is not being considered. In the same file regions with low coverage may get zero read counts. If missing data is replaced by zero, this would convert the excluded repetitive regions into regions of low coverage." />
|
|
70
|
|
71 <param name="scaleFactor1" type="float" value="1" label="Scale factor for treatment"/>
|
|
72 <param name="scaleFactor2" type="float" value="1" label="Scale factor for input"/>
|
|
73 <param name="pseudocount" type="float" value="1" label="Pseudocount" help="Small number to avoid dividing by zero."/>
|
|
74 </when>
|
|
75 </conditional>
|
|
76 </inputs>
|
|
77 <outputs>
|
|
78 <data format="bigwig" name="outFileName">
|
|
79 <change_format>
|
|
80 <when input="outFileFormat" value="bigwig" format="bigwig" />
|
|
81 <when input="outFileFormat" value="bedgraph" format="bedgraph" />
|
|
82 </change_format>
|
|
83 </data>
|
|
84 </outputs>
|
|
85
|
|
86 <help>
|
|
87
|
|
88 **What it does**
|
|
89
|
|
90 This tool compares two bigwig files based on the number of mapped reads. To
|
|
91 compare the bigwig files the genome is partitioned into bins of equal size,
|
|
92 then the number of reads found in each BAM file are counted for such bins and
|
|
93 finally a summarizing value is reported. This value can be the ratio of the
|
|
94 number of reads per bin, the log2 of the ratio, the sum or the difference.
|
|
95
|
|
96 -----
|
|
97
|
|
98 .. class:: infomark
|
|
99
|
|
100 @REFERENCES@
|
|
101
|
|
102 </help>
|
|
103 </tool>
|