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.
Unconfigured Ad
Collapse
X
-
-
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
Latest Articles
Collapse
-
by SEQadmin2
The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.
This convergence of genetics, immunology, and computation...-
Channel: Articles
09-01-2026, 05:41 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Yesterday, 11:37 AM
|
0 responses
12 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 11:37 AM
|
||
|
Started by SEQadmin2, 09-16-2026, 10:23 AM
|
0 responses
20 views
0 reactions
|
Last Post
by SEQadmin2
09-16-2026, 10:23 AM
|
||
|
Started by SEQadmin2, 09-09-2026, 12:14 PM
|
0 responses
37 views
0 reactions
|
Last Post
by SEQadmin2
09-09-2026, 12:14 PM
|
||
|
Started by SEQadmin2, 09-09-2026, 11:33 AM
|
0 responses
33 views
0 reactions
|
Last Post
by SEQadmin2
09-09-2026, 11:33 AM
|
Comment