Shicheng-Guo / bsmap

Automatically exported from code.google.com/p/bsmap
0 stars 0 forks source link

Multiple alignments for a read not handled properly #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using -r 1 (the default), and a read has multiple placements, bsmap selects one 
of the placements at random and marks it as a non-primary alignment.  Marking 
as non-primary isn't the right thing to do.  Rather, the read should get 
MAPQ=0.  Non-primary flag is only appropriate when multiple alignments have 
been written to the output.  The convention of MAPQ=0 implying that there were 
multiple alignments but one was selected randomly appears to have been dropped 
from the spec, but it is the standard.

The attached patch makes this change.

Thanks, Alec

Original issue reported on code.google.com by al...@broadinstitute.org on 18 Dec 2012 at 2:46

Attachments: