How to identify bowtie2 unique mapping using sam flag value?
2
0
Entering edit mode
8.8 years ago

I used BWA before,after mapping to genome or cDNA,I can filter unique mapping reads by sam flag value,but BWA mapping efficiency is not as good as bowtie2,so now I use bowtie2 instead.But I don't know the bowtie2 flag value that can indicate unique mapping.Could I get some answers?Thank you.

RNA-Seq bowtie2 sam flag • 4.3k views
ADD COMMENT
0
Entering edit mode

Which definition of "unique" do you want to go by? I recommend that you just filter by an appropriate MAPQ.

ADD REPLY
1
Entering edit mode
8.1 years ago

Among the optional fields reported by bowtie2 you have :

XS:i:<n> aln score for next best aln (only reported if >1 aln found)

So the absence of this field for a read (in addition to the mapping flag and MAPQ) can be a sign of uniqueness ?

ADD COMMENT
0
Entering edit mode

If your definition of "unique" is that there is only one alignment passing the --score-min threshold then yes.

ADD REPLY
0
Entering edit mode
8.1 years ago
d-cameron ★ 2.9k

If you are running bowtie2 with the -k or -a options, then any read that has only a single output alignment can be considered uniquely mapped. If you're using the default reporting only the best alignment, the you should set a threshold on the MAPQ score reported based on how uniquely mapping you required your alignment.

ADD COMMENT

Login before adding your answer.

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