annotate tools/mytools/bwBinavg.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="bwbinavg" name="bigwig summary">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for intervals</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">getGenomicScore.py $input $output $score_type $bwfile $nbin $strand $outplot $span</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" format="interval" type="data" label="Interval file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="bwfile" format="bigwig" type="data" label="BigWig file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="score_type" type="select" label="Select score summary type" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="mean" selected="true">mean</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="max">maximum</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="min">minimum</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <option value="std">standard deviation</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <option value="coverage">coverage:fraction covered</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="nbin" type="integer" value="1" label="number of bins"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param name="strand" type="integer" value="0" label="Specify the strand column" help="leave 0 to ignore strand information. Only matters if using more than 1 bin"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="span" size="10" type="float" value="0.1" label="loess span: smoothing parameter" help="value less then 0.1 disables smoothing"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <data format="pdf" name="outplot" label="${tool.name} on ${on_string}[plot]"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <data format="interval" name="output" label="${tool.name} on ${on_string}[data]"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 Each interval is binned and the average base-resolution score/coverage/density in the bigwig file is added as new columns appended at the end of the original file .
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 If your original data has the following format:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 +-----+-----+---+------+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 |chrom|start|end|other2|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 +-----+-----+---+------+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 and you choose to divide each interval into 3 bins and return the mean scores of each bin, your output will look like this:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 +-----+-----+---+------+-----+-----+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 |chrom|start|end|other2|mean1|mean2|mean3|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 +-----+-----+---+------+-----+-----+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 </tool>