annotate bigwigCompare.xml @ 18:5ea8782d650c draft

Uploaded
author bgruening
date Mon, 03 Feb 2014 13:44:35 -0500
parents 135f3bae5c56
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
1 <tool id="deeptools_bigwigCompare" name="bigwigCompare" version="1.0.3">
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
2 <description>normalizes and compares two bigWig files to obtain the ratio, log2ratio or difference</description>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
3 <expand macro="requirements"/>
10
135f3bae5c56 Uploaded
bgruening
parents: 9
diff changeset
4 <expand macro="stdio" />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
5 <macros>
18
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
6 <token name="@BINARY@">bigwigCompare</token>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
7 <import>deepTools_macros.xml</import>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
8 </macros>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
9 <command>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
10 bigwigCompare
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
11
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
12 @THREADS@
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
13
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
14 --bigwig1 '$bigwigFile1'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
15 --bigwig2 '$bigwigFile2'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
16
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
17 --outFileName '$outFileName'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
18 --outFileFormat '$outFileFormat'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
19
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
20 --ratio $comparison_type
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
21
18
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
22 #if str(region).strip() != '':
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
23 --region 'region'
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
24 #end if
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
25
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
26 #if $advancedOpt.showAdvancedOpt == "yes":
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
27
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
28 --missingDataAsZero $advancedOpt.missingDataAsZero
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
29 --scaleFactors '$advancedOpt.scaleFactor1:$advancedOpt.scaleFactor2'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
30 --pseudocount '$advancedOpt.pseudocount'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
31 --binSize $advancedOpt.binSize
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
32
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
33 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
34 </command>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
35 <inputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
36 <param name="bigwigFile1" format="bigwig" type="data" label="Treatment bigwig file" />
9
c53a73b8eef9 Uploaded
bgruening
parents: 2
diff changeset
37 <param name="bigwigFile2" format="bigwig" type="data" label="bigWig file" />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
38
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
39 <param name="comparison_type" type="select"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
40 label="How to compare the two files"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
41 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." >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
42 <option value="log2" selected="true">log2 ratio</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
43 <option value="ratio">simple ratio</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
44 <option value="subtract">difference (subtract input from treatment)</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
45 <option value="add">sum</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
46 <option value="reciprocal_ratio">reciprocal ratio</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
47 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
48
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
49 <param name="outFileFormat" type="select" label="Coverage file format">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
50 <option value="bigwig" selected="true">bigwig</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
51 <option value="bedgraph">bedgraph</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
52 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
53
18
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
54 <expand macro="region_limit_operation" />
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
55
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
56 <conditional name="advancedOpt">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
57 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
58 <option value="no" selected="true">no</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
59 <option value="yes">yes</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
60 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
61 <when value="no" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
62 <when value="yes">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
63 <param name="binSize" type="integer" value="50" min="1"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
64 label="Bin size in bp"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
65 help="Size of the bins in bp for the ouput of the bigwig/bedgraph file "/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
66
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
67 <param name="missingDataAsZero" type="boolean" truevalue="yes" falsevalue="no" checked="True"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
68 label ="Treat missing data as zero"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
69 help ="This parameter determines if missing data should be replaced with a zero. If set to &quot;no&quot;, 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." />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
70
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
71 <param name="scaleFactor1" type="float" value="1" label="Scale factor for treatment"/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
72 <param name="scaleFactor2" type="float" value="1" label="Scale factor for input"/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
73 <param name="pseudocount" type="float" value="1" label="Pseudocount" help="Small number to avoid dividing by zero."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
74 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
75 </conditional>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
76 </inputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
77 <outputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
78 <data format="bigwig" name="outFileName">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
79 <change_format>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
80 <when input="outFileFormat" value="bigwig" format="bigwig" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
81 <when input="outFileFormat" value="bedgraph" format="bedgraph" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
82 </change_format>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
83 </data>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
84 </outputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
85
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
86 <help>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
87
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
88 **What it does**
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
89
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
90 This tool compares two bigwig files based on the number of mapped reads. To
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
91 compare the bigwig files the genome is partitioned into bins of equal size,
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
92 then the number of reads found in each BAM file are counted for such bins and
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
93 finally a summarizing value is reported. This value can be the ratio of the
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
94 number of reads per bin, the log2 of the ratio, the sum or the difference.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
95
18
5ea8782d650c Uploaded
bgruening
parents: 10
diff changeset
96
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
97 -----
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
98
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
99 @REFERENCES@
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
100
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
101 </help>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
102 </tool>