Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Alignments Have Impossible Flag Values #235

Open
DarioS opened this issue Feb 13, 2019 · 1 comment
Open

Some Alignments Have Impossible Flag Values #235

DarioS opened this issue Feb 13, 2019 · 1 comment

Comments

@DarioS
Copy link

DarioS commented Feb 13, 2019

I mapped whole genome sequencing data using the -a option. Some alignments have a Flag total of 377 and 441. According to Explain SAM Flags internet tool, 377 includes mate unmapped, read reverse strand, mate reverse strand. How could the mate be unmapped, but also on the reverse strand? Similarly, 441 has the same issue of being contradictory. I came across this by chance because I was trying to decide what value to provide to samtools view -f to explore all of the alignments added by the -a option of bwa mem. It could be more explicitly documented, similar to #206 request.

@quokkamole
Copy link

quokkamole commented Sep 20, 2019

I've encountered the same problem.

I have paired reads where one has a SAM flag total of 117 and the other has a value of 185. In both cases, these values indicate that the unmapped read is associated with the reverse strand.

The alignment were bwa mem PE alignments with -M flag.

Edit:

This situation also seems to be described here:

https://www.cureffi.org/2012/12/19/forward-and-reverse-reads-in-paired-end-sequencing/

and here:

https://www.biostars.org/p/94213/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants