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 denominator in output stats to all mapped reads only, not all in BAM #11

Merged
merged 1 commit into from
Sep 27, 2020

Conversation

jfy133
Copy link
Contributor

@jfy133 jfy133 commented Sep 25, 2020

@TCLamnidis and I realised recently that DeDup incorrectly reports dedupping stats when unmapped reads are included in the BAM file. In EAGER1, unmapped reads were removed by default, but eager2 has a different behaviour.

By leaving in unmapped reads, and using 'totals reads' in the BAM file, this makes an artificially large denominator that makes cluster factors/duplication rates much smaller than they actually are.

As de-dupping is performed on coordinates on the reference genome, dedupping only effects mapped reads therefore all stats should be based on that value.

@apeltzer
Copy link
Owner

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.

2 participants