Identify and count gaps in sam/bam files
0
0
Entering edit mode
4 months ago
shpak.max ▴ 50

Is there a straightforward way to identify and tally the gaps in a sam/bam file created by bwa? A glance at the mapping using IGV suggests that there are virtually no gaps in a mapping that I recently generated, which is problematic. I would like to know if there are any gaps at all.

Is there some way to doing this using a samtools function, or perhaps some other application?

samtools • 534 views
ADD COMMENT
0
Entering edit mode

And with gap, you mean a portion of the genome that has no aligned reads?

ADD REPLY
0
Entering edit mode

I'm referring to gaps corresponding to indels.

ADD REPLY
0
Entering edit mode

You need to do variant calling.

ADD REPLY
0
Entering edit mode

samtools depth -aa should do what you're after. It outputs a tab de limited file. Then use your favorite tool to compute visualize.

ADD REPLY

Login before adding your answer.

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