How To Find Reads With Secondary Alignment In Bwa Mem Sam File ?
2
0
Entering edit mode
10.8 years ago

In BWA MEM sam is there any tag that represents reads having secondary alignment? How to find reads with secondary alignment?

As XA tag represents Secondary alignment for aln command. But how to find in BWA MEM?

bwa-mem bwa • 9.0k views
ADD COMMENT
1
Entering edit mode
10.8 years ago

use

samtools view -f (flag) file.bam

with flag=not primary alignment http://picard.sourceforge.net/explain-flags.html

ADD COMMENT
0
Entering edit mode
10.8 years ago

Thanks for response. When i am using flag 2048 (supplementry alignment) , MEM output is showing results reads with SA tags ie chimeric alignment.

But in case in case i am interested in secondary alignment then what i need to do? shall i use flag 256 (not primary alignment)??

ADD COMMENT

Login before adding your answer.

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