Extract reads from specific target in .bam file
0
0
Entering edit mode
7.2 years ago
Picasa ▴ 650

Hi all,

I am looking to extract reads that are mapped to a specific target.

Let's say I have a file target.txt like this:

head target.txt

scaffold1

scaffold2

scaffold3

And an another file which is a bam file.

Is there a tool that extract reads (or filter) that have mapped only on my target ? ( I have one bam with paired reads and one bam with single reads).

bam filter • 3.1k views
ADD COMMENT
2
Entering edit mode
samtools view -L your.bed your.bam
ADD REPLY

Login before adding your answer.

Traffic: 1773 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6