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

Ensure --min-reads is a hard filter in CallDuplexConsensusReads #1010

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

clintval
Copy link
Member

Closes #1009

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.64%. Comparing base (6ca7733) to head (df69ce8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1010      +/-   ##
==========================================
+ Coverage   95.62%   95.64%   +0.01%     
==========================================
  Files         126      126              
  Lines        7388     7395       +7     
  Branches      510      498      -12     
==========================================
+ Hits         7065     7073       +8     
+ Misses        323      322       -1     
Flag Coverage Δ
unittests 95.64% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if (consensus.forall(duplexHasMinimumNumberOfReads)) {
consensus
} else {
rejectRecords(groups.flatten, FilterMinReads)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We reject the original reads in the group, and not the consensus.

@clintval clintval marked this pull request as ready for review August 29, 2024 19:59
@clintval clintval requested a review from nh13 as a code owner August 29, 2024 19:59
Copy link
Member

@tfenne tfenne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a brief look in VanillaUmiConsensusCaller and it doesn't seem to share this bug, right? I.e. it already re-checks to see if it has enough reads after filtering to the most common alignment.

Feel free to merge after fixing up minor suggestions.

@tfenne tfenne assigned clintval and unassigned tfenne Sep 6, 2024
@clintval
Copy link
Member Author

clintval commented Sep 9, 2024

I took a brief look in VanillaUmiConsensusCaller and it doesn't seem to share this bug, right? I.e. it already re-checks to see if it has enough reads after filtering to the most common alignment.

Yes, you are correct!

Documented the reasoning in the original issue too: #1009 (comment)

We should be all set after this PR is merged.

@clintval clintval merged commit ba61d26 into main Sep 9, 2024
4 checks passed
@clintval clintval deleted the cv_patch_min_reads_filter branch September 9, 2024 16:11
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.

The option --min-reads in CallDuplexConsensusReads is a pre-filter and not a post-filter
2 participants