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

Fix bam IO to take account of BAM_FPAIRED when checking BAM_FREAD1/2 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mp15
Copy link
Contributor

@mp15 mp15 commented Jun 13, 2013

This patch fixes bam IO to take account of BAM_FPAIRED when checking BAM_FREAD1/2. According to the spec "If 0x1 is unset, no assumptions can be made about... 0x2, 0x8, 0x20, 0x40 and 0x80".

@mp15
Copy link
Contributor Author

mp15 commented Jun 20, 2013

This has now been tested on UK10K cohort BAMs and in combination with a correction to samtools fixmates has resolved the problem we had with orphaned paired reads (which had run out of sync and were thus mismapping).

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

Successfully merging this pull request may close these issues.

1 participant