|
10
|
1 <tool id="bedtools_genomecoveragebed_histogram" name="Create a histogram of genome coverage" version="0.1.0">
|
|
|
2 <description></description>
|
|
11
|
3
|
|
|
4 <requirements>
|
|
|
5 <requirement type="binary">genomeCoverageBed</requirement>
|
|
|
6 </requirements>
|
|
|
7
|
|
10
|
8 <command>genomeCoverageBed
|
|
|
9 #if $input.ext == "bam"
|
|
|
10 -ibam '$input'
|
|
|
11 #else
|
|
|
12 -i '$input'
|
|
|
13 -g ${chromInfo}
|
|
|
14 #end if
|
|
|
15 #if str($max):
|
|
|
16 -max $max
|
|
|
17 #end if
|
|
|
18 > '$output'
|
|
|
19 </command>
|
|
|
20
|
|
|
21 <inputs>
|
|
|
22 <param format="bed,bam" name="input" type="data" label="The BAM or BED file from which coverage should be computed"></param>
|
|
|
23 <param name="max" type="text" optional="true" label="Max depth" help="Combine all positions with a depth >= max into a single bin in the histogram."/>
|
|
|
24 </inputs>
|
|
|
25
|
|
|
26 <outputs>
|
|
|
27 <data format="tabular" name="output" metadata_source="input" label="${input.name} (Genome Coverage Histogram)" />
|
|
|
28 </outputs>
|
|
|
29
|
|
|
30 <help>
|
|
|
31 **What it does**
|
|
|
32
|
|
|
33 This tool calculates a histogram of genome coverage depth based on mapped reads in BAM format or intervals in BED format.
|
|
|
34
|
|
|
35
|
|
|
36 ------
|
|
|
37
|
|
|
38 .. class:: warningmark
|
|
|
39
|
|
|
40 This tool requires that `bedtools`__ has been installed on your system.
|
|
|
41
|
|
|
42 .. class:: infomark
|
|
|
43
|
|
|
44 The output file will contain five columns:
|
|
|
45
|
|
|
46 * 1. Chromosome name (or 'genome' for whole-genome coverage)
|
|
|
47 * 2. Coverage depth
|
|
|
48 * 3. The number of bases on chromosome (or genome) with depth equal to column 2.
|
|
|
49 * 4. The size of chromosome (or entire genome) in base pairs
|
|
|
50 * 5. The fraction of bases on chromosome (or entire genome) with depth equal to column 2.
|
|
|
51
|
|
|
52 **Example Output**::
|
|
|
53
|
|
|
54 chr2L 0 1379895 23011544 0.0599653
|
|
|
55 chr2L 1 837250 23011544 0.0363839
|
|
|
56 chr2L 2 904442 23011544 0.0393038
|
|
|
57 chr2L 3 913723 23011544 0.0397072
|
|
|
58 chr2L 4 952166 23011544 0.0413778
|
|
|
59 chr2L 5 967763 23011544 0.0420555
|
|
|
60 chr2L 6 986331 23011544 0.0428624
|
|
|
61 chr2L 7 998244 23011544 0.0433801
|
|
|
62 chr2L 8 995791 23011544 0.0432735
|
|
|
63 chr2L 9 996398 23011544 0.0432999
|
|
|
64
|
|
|
65
|
|
|
66
|
|
|
67
|
|
|
68 ------
|
|
|
69
|
|
|
70 This tool is part of the `bedtools package`__ from the `Quinlan laboratory`__. If you use this tool, please cite `Quinlan AR, and Hall I.M. BEDTools: A flexible framework for comparing genomic features. Bioinformatics, 2010, 26, 6.`__
|
|
|
71
|
|
|
72 .. __: http://code.google.com/p/bedtools/
|
|
|
73 .. __: http://code.google.com/p/bedtools/
|
|
|
74 .. __: http://cphg.virginia.edu/quinlan/
|
|
|
75 .. __: http://bioinformatics.oxfordjournals.org/content/26/6/841.short
|
|
|
76
|
|
|
77
|
|
|
78
|
|
|
79 </help>
|
|
|
80 </tool>
|