annotate coverageBed.xml @ 8:0232cdab3664 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9555dac6cbff70048b682a6514c7fbb2b7fbb975
author iuc
date Mon, 05 Sep 2016 15:27:58 -0400
parents d25966c8ddeb
children 2ab422b551df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
1 <tool id="bedtools_coveragebed" name="Compute both the depth and breadth of coverage" version="@WRAPPER_VERSION@.1">
8
0232cdab3664 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9555dac6cbff70048b682a6514c7fbb2b7fbb975
iuc
parents: 6
diff changeset
2 <description>
0232cdab3664 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9555dac6cbff70048b682a6514c7fbb2b7fbb975
iuc
parents: 6
diff changeset
3 of features in file B on the features in file A (bedtools coverage)
0232cdab3664 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 9555dac6cbff70048b682a6514c7fbb2b7fbb975
iuc
parents: 6
diff changeset
4 </description>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
9 <expand macro="stdio" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 <command>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
11 <![CDATA[
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
12 #set inputBs = "' '".join([str($file) for $file in $inputB])
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
13
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
14 bedtools coverage
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 $d
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
16 $hist
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 $split
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 $strandedness
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
19 -a '$inputA'
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
20 -b '$inputBs'
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 | sort -k1,1 -k2,2n
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
22 > '$output'
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
23 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 <inputs>
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
26 <param format="bam,bed,gff,gff3,vcf" name="inputA" type="data" label="File A (on which coverage is calculated)" help="BAM/BED/GFF/VCF format" />
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
27 <param format="bam,bed,gff,gff3,vcf" name="inputB" type="data" multiple="true" label="File(s) B (for which coverage is calculated)" help="BAM/BED/GFF/VCF format" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
28 <expand macro="split" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 <param name="strandedness" type="boolean" label="Force strandedness" truevalue="-s" falsevalue="" checked="false"
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
30 help="Only report hits in B that overlap A on the same strand. By default, overlaps are reported without respect to strand (-s)"/>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
31 <param name="d" type="boolean" checked="false" truevalue="-d" falsevalue=""
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
32 label="Report the depth at each position in each A feature"
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
33 help="Positions reported are one based. Each position and depth follow the complete B feature (-d)" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
34 <param name="hist" type="boolean" checked="false" truevalue="-hist" falsevalue=""
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
35 label="Report a histogram of coverage for each feature in A as well as a summary histogram for all features in A"
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
36 help="Additional columns after each feature in A: 1) depth 2) # bases at depth 3) size of A 4) % of A at depth (-hist)" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 <outputs>
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
39 <data format="bed" name="output" metadata_source="inputA" label="Count of overlaps on ${inputA.name}"/>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
41 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
42 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
43 <param name="inputA" value="coverageBedA.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
44 <param name="genome" value="coverageBedB.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
45 <output name="output" file="coverageBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
46 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
47 </tests>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
48 <help>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
49 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
50 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
52 `bedtools coverage`_ computes both the *depth* and *breadth* of coverage of features in
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
53 file B on the features in file A. For example, ``bedtools coverage`` can compute the coverage of sequence alignments
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
54 (file B) across 1 kilobase (arbitrary) windows (file A) tiling a genome of interest.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
55 One advantage that ``bedtools coverage`` offers is that it not only *counts* the number of features that
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
56 overlap an interval in file A, it also computes the fraction of bases in the interval in A that were overlapped by one or more features.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
57 Thus, ``bedtools coverage`` also computes the *breadth* of coverage for each interval in A.
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
58
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
59 .. _bedtools coverage: http://bedtools.readthedocs.org/en/latest/content/tools/coverage.html
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 .. class:: infomark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
62
6
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
63 The lines in the output will be comprised of each interval in A, followed by:
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
64
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
65 1. The number of features in B that overlapped (by at least one base pair) the A interval.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
66 2. The number of bases in A that had non-zero coverage from features in B.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
67 3. The length of the entry in A.
d25966c8ddeb planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f-dirty
iuc
parents: 1
diff changeset
68 4. The fraction of bases in A that had non-zero coverage from features in B.
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
69
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
70 @REFERENCES@
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
71 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
73 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
74 </tool>