Galaxy | Tool Preview

Create a BedGraph of genome coverage (version 0.1.0)
If set, regions without any coverage will also be reported.
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.
Each BEDGRAPH coverage value is multiplied by this factor before being reported. Useful for normalizing coverage by, e.g., reads per million (RPM)

What it does

This tool calculates the genome-wide coverage of intervals defined in a BAM or BED file and reports them in BedGraph format.

The input BED or BAM file must be sorted by chromosome name (but doesn't necessarily have to be sorted by start position).

This tool requires that bedtools has been installed on your system.


Example 1

Input (BED format)- Overlapping, un-sorted intervals:

chr1    140 176
chr1    100 130
chr1    120 147

Output (BedGraph format)- Sorted, non-overlapping intervals, with coverage value on the 4th column:

chr1    100 120 1
chr1    120 130 2
chr1    130 140 1
chr1    140 147 2
chr1    147 176 1

Example 2 - with ZERO-Regions selected (assuming hg19)

Input (BED format)- Overlapping, un-sorted intervals:

chr1    140 176
chr1    100 130
chr1    120 147

Output (BedGraph format)- Sorted, non-overlapping intervals, with coverage value on the 4th column:

chr1    0 100 0
chr1    100 120 1
chr1    120 130 2
chr1    130 140 1
chr1    140 147 2
chr1    147 176 1
chr1    176 249250621 0

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.