I have paired-end data as a BAM file and I am trying to extract reads from a specific region. This sounds pretty straightforward, however, the catch is that some of the reads may have their mates mapped in a completely different location, maybe due to large structural variation.
I was going through some of samtools' options however, I did not find any particular parameter that can get me what I want.
Any suggestions would be much appreciated.
Pierre posted an efficient method for step 2 earlier:
Extract Alignment By Read Id From A Sam File