comparison coverageBed.xml @ 10:71af3ebbbb7a draft

Uploaded
author iuc
date Wed, 29 Apr 2015 12:06:53 -0400
parents 0d3aa592ce27
children ac8b17b66663
comparison
equal deleted inserted replaced
9:21f1d1c5467b 10:71af3ebbbb7a
1 <tool id="bedtools_coveragebed" name="Compute both the depth and breadth of coverage" version="@WRAPPER_VERSION@.1">
2 <description>of features in file A across the features in file B (coverageBed)</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="stdio" />
8 <command>
9 <![CDATA[
10 coverageBed
11 #if $inputA.ext == "bam"
12 -abam '$inputA'
13 #else
14 -a '$inputA'
15 #end if
16 -b '$inputB'
17 $d
18 $hist
19 $split
20 $strandedness
21 | sort -k1,1 -k2,2n
22 > '$output'
23 ]]>
24 </command>
25 <inputs>
26 <param format="bed,bam,gff,gg3,vcf" name="inputA" type="data" label="Count how many intervals in this BED/VCF/GFF/BAM file (source)" />
27 <param format="bed,gff,gff3,vcf" name="inputB" type="data" label="overlap the intervals in this BED file (target)" />
28 <expand macro="split" />
29 <param name="strandedness" type="boolean" label="Force strandedness" truevalue="-s" falsevalue="" checked="false"
30 help="That is, only features in A are only counted towards coverage in B if they are the same strand. (-s)"/>
31 <param name="d" type="boolean" checked="false" truevalue="-d" falsevalue=""
32 label="Report the depth at each position in each B feature"
33 help="Positions reported are one based. Each position and depth follow the complete B feature. (-d)" />
34 <param name="hist" type="boolean" checked="false" truevalue="-hist" falsevalue=""
35 label="Report a histogram of coverage for each feature in B as well as a summary histogram for all features in B"
36 help="Additonal columns after each feature in B: 1) depth 2) # bases at depth 3) size of B 4) % of B at depth. (-hist)" />
37 </inputs>
38 <outputs>
39 <data format="bed" name="output" metadata_source="inputB" label="Count of overlaps in ${inputA.name} on ${inputB.name}"/>
40 </outputs>
41 <tests>
42 <test>
43 <param name="inputA" value="coverageBedA.bed" ftype="bed" />
44 <param name="genome" value="coverageBedB.bed" ftype="bed" />
45 <output name="output" file="coverageBed_result1.bed" ftype="bed" />
46 </test>
47 </tests>
48 <help>
49 <![CDATA[
50 **What it does**
51
52 coverageBed_ computes both the depth and breadth of coverage of features in
53 file A across the features in file B. For example, coverageBed can compute the coverage of sequence alignments
54 (file A) across 1 kilobase (arbitrary) windows (file B) tiling a genome of interest.
55 One advantage that coverageBed offers is that it not only counts the number of features that
56 overlap an interval in file B, it also computes the fraction of bases in B interval that were overlapped by one or more features.
57 Thus, coverageBed also computes the breadth of coverage for each interval in B.
58
59 .. _coverageBed: http://bedtools.readthedocs.org/en/latest/content/tools/coverage.html
60
61 .. class:: infomark
62
63 The output file will be comprised of each interval from your original target BED file, plus an additional column indicating the number of intervals in your source file that overlapped that target interval.
64
65 @REFERENCES@
66 ]]>
67 </help>
68 <expand macro="citations" />
69 </tool>