Files
galaxy/tools/regVariation/featureCounter.xml
T

72 lines
2.6 KiB
XML

<tool id="featureCoverage" name="Feature coverage">
<description></description>
<command interpreter="python2.4">featureCounter.py $input1 $input2 $output -1 $input1_chromCol,$input1_startCol,$input1_endCol,$input1_strandCol -2 $input2_chromCol,$input2_startCol,$input2_endCol,$input2_strandCol</command>
<inputs>
<param format="interval" name="input1" type="data" help="First query">
<label>What portion of</label>
</param>
<param format="interval" name="input2" type="data" help="Second query">
<label>is covered by</label>
</param>
</inputs>
<outputs>
<data format="interval" name="output" metadata_source="input1" />
</outputs>
<tests>
<test>
<param name="input1" value="1.bed" />
<param name="input2" value="2.bed" />
<output name="output" file="6_feature_coverage.bed" />
</test>
</tests>
<help>
.. class:: infomark
**What it does**
This tool finds the coverage of intervals in the first query on intervals in the second query. The count and coverage are added as 4 new columns, as explained in the example below.
-----
**Example**
- if **First query** consists of following windows::
chrX 1 10001 seg 0 -
chrX 10001 20001 seg 0 -
chrX 20001 30001 seg 0 -
chrX 30001 40001 seg 0 -
- and **Second query** consits of following exons::
chrX 5000 6000 seg2 0 -
chrX 5500 7000 seg2 0 -
chrX 9000 22000 seg2 0 -
chrX 24000 34000 seg2 0 -
chrX 36000 38000 seg2 0 -
- the **Result** is the coverage of exons of second query in each of the windows contained in first query::
chrX 1 10001 seg 0 - 2 20.00 1 10.00
chrX 10001 20001 seg 0 - 1 100.00 0 0.00
chrX 20001 30001 seg 0 - 0 0.00 2 80.00
chrX 30001 40001 seg 0 - 1 20.00 1 39.99
- For example, the following line of output (New columns added are indexed by a-d below)::
chrX 1 10001 seg 0 - 2 20.00 1 10.00
a b c d
implies that 2 exons(a) fall in this window(chrX:1-10001) completely covering 20% of the window size(b) and 1 exon(c) partially overlaps with this window, covering 10% of the window size(d).
a : Number of features in the 2nd query that fall COMPLETELY within this window
b : % of window size covered by features in 'a' (All overlapping features in 'a' will be merged to calculate 'b')
c : Number of features in the 2nd query that partiallyoverlap with this window
d : % of window size covered by features in 'c' (All overlapping features in 'c' will be merged to calculate 'd')
</help>
</tool>