Consider "low" mapping quality reads to be unaligned for the purpose of Marking Duplicates.#1460
Consider "low" mapping quality reads to be unaligned for the purpose of Marking Duplicates.#1460yfarjoun wants to merge 1 commit into
Conversation
- fixed tests.
|
@yfarjoun Just letting you know that I'm using this on some somatic data to determine if this affects the false positive rates. |
|
great. thanks @fleharty |
|
@yfarjoun With the current MarkDuplicates With "low" mapping quality reads unaligned. It looks like the SNP false positive rate goes up with this new Mark Duplicates methods, but the indel false positive rate goes down. |
|
@yfarjoun I would like to follow up on this to understand why this would increase FP rate in SNPs, it makes no sense to me. I don't have time this week to look into that unfortunately. Do you want me to pursue this further? |
|
is there a typo in the new indel FP rate? Seems like a 0 is missing after the decimal. |
|
if you can DM me the locations perhaps I can take a look. thanks for setting this up! |
|
@yfarjoun |
|
@fleharty Do you know if we want to proceed with this PR? |
Fixes #128 and #1285 (which are similar issues and about a factor of 10 difference in issue number...)
The main thrust here is to consider "low mapping quality" as an indication of the read being effectively unmapped, as its location is not well determined and thus two identical fragments where each have one read with low (=0, e.g) mapping quality should be considered to be duplicates, or not, based on the well-mapped reads, and not the semi-random low-mapping quality read.
Since this uses the same mechanism of unmapped reads, it will also not mark the low-mapping quality read as duplicate when its mate is marked so. Unless the file is queryname sorted, in which case the unmapped and the low-mapping quality reads are marked like their well-aligned mate.
Description
Give your PR a concise yet descriptive title
Please explain the changes you made here.
Explain the motivation for making this change. What existing problem does the pull request solve?
Mention any issues fixed, addressed or otherwise related to this pull request, including issue numbers or hard links for issues in other repos.
You can delete these instructions once you have written your PR description.
Checklist (never delete this)
Never delete this, it is our record that procedure was followed. If you find that for whatever reason one of the checklist points doesn't apply to your PR, you can leave it unchecked but please add an explanation below.
Content
Review
For more detailed guidelines, see https://github.com/broadinstitute/picard/wiki/Guidelines-for-pull-requests