Table 1 illustrates the wide range of operations that BEDTools support. Many of the tools have extensive parameters that allow user-defined overlap criteria and fine control over how results are reported. Importantly, we have also defined a concise format (BEDPE) to facilitate comparisons of discontinuous features (e.g. paired-end sequence reads) to each other (pairToPair), and to genomic features in traditional BED format (pairToBed). This functionality is crucial for interpreting genomic rearrangements detected by paired-end mapping, and for identifying fusion genes or alternative splicing patterns by RNA-seq. To facilitate comparisons with data produced by current DNA sequencing technologies, intersectBed and pairToBed compute overlaps between sequence alignments in BAM format (Li et al., 2009 (link)), and a general purpose tool is provided to convert BAM alignments to BED format, thus facilitating the use of BAM alignments with all other BEDTools (Table 1). The following examples illustrate the use of intersectBed to isolate single nucleotide polymorphisms (SNPs) that overlap with genes, pairToBed to create a BAM file containing only those alignments that overlap with exons and intersectBed coupled with samtools to create a SAM file of alignments that do not intersect (-v) with repeats.
Summary of supported operations available in the BEDTools suite
Utility
Description
intersectBed*
Returns overlaps between two BED files.
pairToBed
Returns overlaps between a BEDPE file and a BED file.
bamToBed
Converts BAM alignments to BED or BEDPE format.
pairToPair
Returns overlaps between two BEDPE files.
windowBed
Returns overlaps between two BED files within a user-defined window.
closestBed
Returns the closest feature to each entry in a BED file.
subtractBed*
Removes the portion of an interval that is overlapped by another feature.
mergeBed*
Merges overlapping features into a single feature.
coverageBed*
Summarizes the depth and breadth of coverage of features in one BED file relative to another.
genomeCoverageBed
Histogram or a ‘per base’ report of genome coverage.
fastaFromBed
Creates FASTA sequences from BED intervals.
maskFastaFromBed
Masks a FASTA file based upon BED coordinates.
shuffleBed
Permutes the locations of features within a genome.
slopBed
Adjusts features by a requested number of base pairs.
sortBed
Sorts BED files in useful ways.
linksBed
Creates HTML links from a BED file.
complementBed*
Returns intervals not spanned by features in a BED file.
Utilities in bold support sequence alignments in BAM. Utilities with an asterisk were compared with Galaxy and found to yield identical results.
Other notable tools include coverageBed, which calculates the depth and breadth of genomic coverage of one feature set (e.g. mapped sequence reads) relative to another; shuffleBed, which permutes the genomic positions of BED features to allow calculations of statistical enrichment; mergeBed, which combines overlapping features; and utilities that search for nearby yet non-overlapping features (closestBed and windowBed). BEDTools also includes utilities for extracting and masking FASTA sequences (Pearson and Lipman, 1988 (link)) based upon BED intervals. Tools with similar functionality to those provided by Galaxy were directly compared for correctness using the ‘knownGene’ and ‘RepeatMasker’ tracks from the hg19 build of the human genome. The results from all analogous tools were found to be identical (Table 1).
Partial Protocol Preview
This section provides a glimpse into the protocol. The remaining content is hidden due to licensing restrictions, but the full text is available at the following link:
Access Free Full Text.
Overlaps between sequence alignments in BAM format and genomic features
Overlaps between BEDPE files and BED files
control variables
Positive control: 'knownGene' track from hg19 build of the human genome
Negative control: 'RepeatMasker' track from hg19 build of the human genome
Annotations
Based on most similar protocols
Etiam vel ipsum. Morbi facilisis vestibulum nisl. Praesent cursus laoreet felis. Integer adipiscing pretium orci. Nulla facilisi. Quisque posuere bibendum purus. Nulla quam mauris, cursus eget, convallis ac, molestie non, enim. Aliquam congue. Quisque sagittis nonummy sapien. Proin molestie sem vitae urna. Maecenas lorem.
As authors may omit details in methods from publication, our AI will look for missing critical information across the 5 most similar protocols.
About PubCompare
Our mission is to provide scientists with the largest repository of trustworthy protocols and intelligent analytical tools, thereby offering them extensive information to design robust protocols aimed at minimizing the risk of failures.
We believe that the most crucial aspect is to grant scientists access to a wide range of reliable sources and new useful tools that surpass human capabilities.
However, we trust in allowing scientists to determine how to construct their own protocols based on this information, as they are the experts in their field.
Ready to
get started?
Sign up for free.
Registration takes 20 seconds.
Available from any computer
No download required