annotate mytools/metaintv.xml @ 9:87eb5c5ddfe9

Uploaded
author xuebing
date Fri, 09 Mar 2012 20:01:43 -0500
parents f0dc65e7f6c0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
1 <tool id="metaintv" name="binned-average">
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
2 <description>from bigwig</description>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">binnedAverage.py $bwfile $intvfile $nbin $outfile $outplot </command>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
5 <param name="intvfile" format="bed" type="data" label="BED file (require strand in column 6)"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
6 <param name="bwfile" format="bigwig" type="data" label="BigWig file"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
7 <param name="nbin" type="integer" value="20" label="number of bins"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
8
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
9 </inputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
10 <outputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
11 <data format="tabular" name="outfile" label="${tool.name} on ${on_string}[data]"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
12 <data format="pdf" name="outplot" label="${tool.name} on ${on_string}[plot]"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
13 </outputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
14 <help>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
15
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
16 .. class:: infomark
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
17
f0dc65e7f6c0 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 .
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
19
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
20 **Example**
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
21
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
22 If your original data has the following format:
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
23
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
24 +-----+-----+---+------+
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
25 |chrom|start|end|other2|
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
26 +-----+-----+---+------+
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
27
f0dc65e7f6c0 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:
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
29
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
30 +-----+-----+---+------+-----+-----+-----+
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
31 |chrom|start|end|other2|mean1|mean2|mean3|
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
32 +-----+-----+---+------+-----+-----+-----+
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
33
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
34
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
35 </help>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
36 </tool>