Filter BAM to keep only alignments at an interval, ignoring reads spliced over
0
1
Entering edit mode
10 days ago

Hi,

I am looking at a rare splicing event, and would like to keep only reads in a specific interval that have an alignment at that location. With a simple samtools view alignment.cram chr1:12345-12456 I also get all reads that are spliced across that interval (screenshot below). How do I get rid of reads that do not actually align at this location?

Bonus points if I can still keep the mates of the reads that align at this location...

enter image description here

samtools bam splicing • 255 views
ADD COMMENT
0
Entering edit mode

what's the gray section ? it's the read you want ? do you only want the reads that end at the splice event (single point location) ?

ADD REPLY
0
Entering edit mode

I want reads in a specific short interval, but if I do that with samtools view I also get reads that are spliced over that interval.

ADD REPLY

Login before adding your answer.

Traffic: 1797 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