Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • toadstools
    Junior Member
    • Dec 2016
    • 1

    bedtools - adding fields to bedpe files

    Bedtools documentation states that one can add two extra fields to a bedpe file when using bamtobed. Does anyone know how to do that? I need to add the read sequences. Thanks.
  • dblyons
    Junior Member
    • Apr 2011
    • 5

    #2
    one possible solution is to use your bed output in conjunction with

    bedtools getfasta -tab

    then parse the output to get the bed formatting back by perl -wpl -i.bak -e 's/:|-/\t/g;'

    if you need the reads themselves and not the genome sequence where they mapped, you could write a sam parser to simply print some of the columns of the sam file. all the info you need is in the sam, just need to look at the sam docs to figure out what you want to print (i.e. which columns) and how to modify the sam to get bed-like coordinates. awk is good for such a task, just be aware of the strand
    Last edited by dblyons; 01-06-2017, 12:56 PM. Reason: typo

    Comment

    Latest Articles

    Collapse

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 10:09 AM
    0 responses
    10 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-04-2026, 08:59 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-02-2026, 12:03 PM
    0 responses
    26 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-02-2026, 11:40 AM
    0 responses
    21 views
    0 reactions
    Last Post SEQadmin2  
    Working...