Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quinlana
    Senior Member
    • Sep 2008
    • 119

    #1

    BEDTools support for BAM/GFF/BED12

    I recently posted a new version of BEDTools (v2.4.1, http://bedtools.googlecode.com). Most notably, this release includes extensive support for sequence alignments in BAM format and provides a convenient means to refine sequence datasets based on biological interest. GFF support has also been added. Here are the highlights:


    (1) Native support for features in GFF format. Can mix and match BED and GFF, BAM (see below) and GFF, etc.

    (2) Native support for alignment files in BAM format (http://samtools.sourceforge.net/).
    • intersectBed will compare each BAM alignment (if paired, each end is treated distinctly) to BED/GFF annotations. Alignments that overlap (or don't) BED/GFF annotations can be written in BED format or written to a newly BAM file.
      • e.g. $ intersectBed -abam reads.bam -b exons.bed > reads.in.exons.bam
      • e.g. $ intersectBed -abam reads.bam -b ssrs.bed -v > reads.notIn.simplerepeats.bam

    • pairToBed will compare paired-end BAM alignments (the ends treated as a logical unit) to BED annotations. Alignments that overlap BED/GFF (or don't) annotations can be written in BEDPE (paired-end) format or written to a newly refined BAM file. One can require that both, either, neither, xor, or "not both" ends overlap the BED/GFF annotations. Moreover, one can examine the "span" of intra-chromosomal pairs to BED/GFF annotations (e.g. "does the ~500bp span of my paired-end read overlap an exon?").
      • e.g. $ pairToBed -abam stdin -b segdups.bed -type both > reads.bothEndsInSD.bam
      • e.g. $ pairToBed -abam reads.bam -b ssrs.bed -type notboth > reads.oneOrNoEndsIn.simplerepeats.bam

    • bamToBed will convert BAM alignments to either BED or BEDPE format. This allows BAM alignments to work with the other 14 BEDTools.
      • e.g. $ samtools view -f 0X2 | bamToBed -i stdin | coverageBed -a stdin -b 5kb.windows.bed
    • The tools play nicely with samtools.
      • e.g. $ samtools view -F 0X2 | pairToBed -abam stdin -b genes.bed -type both | samtools view -


    (3) Native support for "blocked" BED features (aka BED12). Note that each block is not considered separately. BEDTools merely allows one to use BED12 files and the last 6 fields are "passed through" the tools.

    (4) A comprehensive user manual has been posted to the website. This includes all options, the details of the file formats, as well as many usage examples.

    (5) Several improvements to the code base and algorithms, as well as an end to a few minor bugs.

    Support for alignments in BAM format was made possible by the elegant BAMTools API (http://bamtools.sourceforge.net) led by Derek Barnett in Gabor Marth's lab.

    Regards,
    Aaron
  • dawe
    Senior Member
    • Apr 2009
    • 258

    #2
    Great work, thanks!

    d

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    30 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    39 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    45 views
    0 reactions
    Last Post SEQadmin2  
    Working...