Unconfigured Ad

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

    #1

    BEDTools: new tools / support for paired-end features.

    Hello all,
    I just posted version 2.3.0 of BEDTools (http://code.google.com/p/bedtools/) which includes several new and useful updates.

    (1) I added four new tools:

    (a) shuffleBed. Randomly permutes the locations of a BED file among a genome. Useful for testing for significant enrichment of say, an experimental observation with a genome feature. It also allows one to define a separate BED file of genomic regions that should be _exluded_ from random placement (e.g. genome gaps).
    (b) slopBed. Adds a requested number of base pairs to each end of a BED feature. More clever than an awk on a BED file, as it is constrained by the size of each chromosome.
    (c) maskFastaFromBed. Masks a FASTA file based on BED coordinates. Useful making custom genome files for, as an example, targeted capture experiments, etc.
    (d) pairToPair. Returns overlaps between two paired-end BED files. This is great for finding structural variants that are private or shared among samples. Specifically, pairToPair will find paired-end alignments / or variants that have the same orientation on both ends and have overlapping alignments on both ends. I've found this to be very useful for classifying structural variation detected by paired-end mapping.

    (2) I increased the speed of intersectBed by nearly 50%.
    (3) I improved / corrected some of the help messages.
    (4) I improved sanity checking for BED entries.

    (5) I added two new scripts. The first, samToBed, will convert alignments in SAM format to BED format. It also accepts input from standard input so as to play nicely with the "samtools view" command. The second, gffToBed, converts GFF annotations to BED.

    I hope you find these useful.
    Aaron
  • dawe
    Senior Member
    • Apr 2009
    • 258

    #2
    Hi Aaron,
    I exploit this post to ask you how closestBed works... I really don't get what a tie is.
    As example

    Code:
    $ closestBed   -a mysplit/merged_IRR1.bed -b mm9.refseq.tss.bed6 | head
    chr1	4172972	4173006	1	+	chr1	4334223	4350473	NM_011283	0	-
    chr1	4557081	4557115	1	+	chr1	4334223	4350473	NM_011283	0	-
    chr1	4557081	4557115	1	+	chr1	4481008	4486494	NM_011441	0	-
    chr1	4562824	4562858	1	+	chr1	4334223	4350473	NM_011283	0	-
    chr1	4562824	4562858	1	+	chr1	4481008	4486494	NM_011441	0	-
    chr1	5120005	5120039	1	-	chr1	5073253	5152630	NM_133826	0	+
    chr1	5493224	5493258	1	+	chr1	4334223	4350473	NM_011283	0	-
    chr1	5493224	5493258	1	+	chr1	4481008	4486494	NM_011441	0	-
    chr1	5493224	5493258	1	+	chr1	4764014	4775768	NM_025300	0	-
    chr1	5493224	5493258	1	+	chr1	4797973	4836816	NM_008866	0	+
    I expect closestBed to search the closest feature up/downstream, instead I get a list of features from the farthest to the closest (in abs(dist)). I'm a bit puzzled :-)

    Comment

    • quinlana
      Senior Member
      • Sep 2008
      • 119

      #3
      Hi Dawe,
      You are rightfully puzzled...I was too. Your expectation of how it should behave is correct. Unfortunately, I injected a typo while modifying an unrelated piece of code prior to this release. A new version (2.3.1) has been posted which behaves as you would expect. I tested it with your sample data below and all appears well.

      As for ties, these occur in two ways:

      1) When there are two or more features in B that _overlap_ the same fraction of feature in A, by default both features in B are reported. By using the -t first or -t last, you can choose just one.

      2) When there are two or more that while not overlapping a feature in A, are exactly the same distance from A (say 1Mb), both will be reported.

      Sorry for the confusion.
      Aaron

      Comment

      • dawe
        Senior Member
        • Apr 2009
        • 258

        #4
        I've got it (both the tie definition and the new version tarball!).
        As you said, it works!
        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, Yesterday, 11:13 AM
        0 responses
        16 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...