BAM detect unalign region
1
0
Entering edit mode
4.2 years ago

Hello folks,

I am running bowtie2 of a sequenced PCR product against a reference allele. Obviously here, my PCR product is bigger than the length of the sequence reads.

BAM containing unaligned region

How can I detect the presence of unaligned regions/positions early on without visualising on IGV?

Thank you.

bowtie2 • 437 views
ADD COMMENT
0
Entering edit mode
4.2 years ago
samtools depth -r "chrom1:234-567" -a in.bam |\
awk '$3=="0" {printf("%s\t%d\t%s\n",$1,int($2)-1,$2);}' |\
sort -t $'\t' -k1,1 -k2,2n |\
bedtools merge
ADD COMMENT

Login before adding your answer.

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