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