comparison genomeCoverageBed_bedgraph.xml @ 0:b8348686a0b9 draft

Imported from capsule None
author iuc
date Tue, 04 Nov 2014 01:45:04 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b8348686a0b9
1 <tool id="bedtools_genomecoveragebed_bedgraph" name="Create a BedGraph of genome coverage" version="@WRAPPER_VERSION@.0">
2 <description>
3 </description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <expand macro="stdio" />
9 <command>
10 genomeCoverageBed
11 #if $input.ext == "bam"
12 -ibam '$input'
13 #else
14 -i '$input'
15 -g ${chromInfo}
16 #end if
17
18 #if str($scale):
19 -scale $scale
20 #end if
21
22 -bg
23 $zero_regions
24 $split
25 $strand
26 &gt; '$output'
27 </command>
28 <inputs>
29 <param format="bed,bam" name="input" type="data" label="The BAM or BED file from which coverage should be computed">
30 <validator type="unspecified_build" />
31 </param>
32
33 <param name="zero_regions" type="boolean" checked="true" truevalue="-bga" falsevalue="" label="Report regions with zero coverage" help="If set, regions without any coverage will also be reported." />
34
35 <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data." />
36
37 <param name="strand" type="select" label="Calculate coverage based on">
38 <option value="">both strands combined</option>
39 <option value="-strand +">positive strand only</option>
40 <option value="-strand -">negative strand only</option>
41 </param>
42
43 <param name="scale" type="float" optional="true" label="Scale the coverage by a constant factor" help="Each BEDGRAPH coverage value is multiplied by this factor before being reported. Useful for normalizing coverage by, e.g., reads per million (RPM)"/>
44 </inputs>
45 <outputs>
46 <data format="bedgraph" name="output" metadata_source="input" label="${input.name} (Genome Coverage BedGraph)" />
47 </outputs>
48 <help>
49
50
51 **What it does**
52
53 This tool calculates the genome-wide coverage of intervals defined in a BAM or BED file and reports them in BedGraph format.
54
55 .. class:: warningmark
56
57 The input BED or BAM file must be sorted by chromosome name (but doesn't necessarily have to be sorted by start position).
58
59 -----
60
61 **Example 1**
62
63 Input (BED format)-
64 Overlapping, un-sorted intervals::
65
66 chr1 140 176
67 chr1 100 130
68 chr1 120 147
69
70
71 Output (BedGraph format)-
72 Sorted, non-overlapping intervals, with coverage value on the 4th column::
73
74 chr1 100 120 1
75 chr1 120 130 2
76 chr1 130 140 1
77 chr1 140 147 2
78 chr1 147 176 1
79
80 -----
81
82 **Example 2 - with ZERO-Regions selected (assuming hg19)**
83
84 Input (BED format)-
85 Overlapping, un-sorted intervals::
86
87 chr1 140 176
88 chr1 100 130
89 chr1 120 147
90
91
92 Output (BedGraph format)-
93 Sorted, non-overlapping intervals, with coverage value on the 4th column::
94
95 chr1 0 100 0
96 chr1 100 120 1
97 chr1 120 130 2
98 chr1 130 140 1
99 chr1 140 147 2
100 chr1 147 176 1
101 chr1 176 249250621 0
102
103 @REFERENCES@
104 </help>
105 <expand macro="citations" />
106 </tool>