annotate tools/mytools/metaintv.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="metaintv" name="binned-average">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>from bigwig</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">binnedAverage.py $bwfile $intvfile $nbin $outfile $outplot </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="intvfile" format="bed" type="data" label="BED file (require strand in column 6)"/>
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="nbin" type="integer" value="20" label="number of bins"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <data format="tabular" name="outfile" label="${tool.name} on ${on_string}[data]"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <data format="pdf" name="outplot" label="${tool.name} on ${on_string}[plot]"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 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
19
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 If your original data has the following format:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 +-----+-----+---+------+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 |chrom|start|end|other2|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 +-----+-----+---+------+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 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
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 +-----+-----+---+------+-----+-----+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 |chrom|start|end|other2|mean1|mean2|mean3|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 +-----+-----+---+------+-----+-----+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </tool>