-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: allow for left/right primer hits to overlap when building primer pair hits with OverlapDetector
#102
base: am_overlap_detector_post_init_validation
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## am_overlap_detector_post_init_validation #102 +/- ##
=========================================================================
Coverage 96.81% 96.81%
=========================================================================
Files 26 26
Lines 1787 1792 +5
Branches 215 216 +1
=========================================================================
+ Hits 1730 1735 +5
Misses 31 31
Partials 26 26 ☔ View full report in Codecov by Sentry. |
dce889a
to
434218d
Compare
434218d
to
e39670e
Compare
1a61cb0
to
c9075ac
Compare
…sing min amplicon size parameter
cfaca8f
to
22fc66f
Compare
I agree - I implemented it this way with the intention of not making a breaking change, but I think a user is more likely to not care too much if the primers overlap a bit so long as they get a long enough amplicon. |
See discussion.
The code before this PR does not return primer pair hits where the hits to the left and right primers overlap, and does not specify a minimum acceptable amplicon size.
This change adds two new parameters to the
OffTargetDetector
to address this:allow_overlapping_hits
- defaults toFalse
to maintain current behaviour. If this is set toTrue
, then primer pair hits where the left and right primer hits overlap are allowed, as long as they meet the acceptable amplicon size criteria.min_amplicon_size
- defaults to1
to maintain current behaviour, and is overridden byallow_overlapping_hits=False
.