Repository navigation
Charge Q/10 per mismatch in ILLUMINACLIP palindrome mode - #91
Merged
sebeier merged 1 commit intoSep 28, 2026
Merged
Conversation
Collaborator
|
Thanks! Could you retarget this to the V0.42 branch so it makes it into the next release? And please drop the change to dependency-reduced-pom.xml, it seems to only change line endings from a local build. |
calculatePalindromeDifferenceQuality divided two ints (-qual1 / 10), so a palindrome mismatch cost int(Q/10): nothing below Q10, 1 for Q10-Q19 and so on. Simple mode (calculateDifferenceQuality) and the README both charge Q/10. Divide by 10.0f in both branches, as simple mode does. Adds IlluminaPalindromeMismatchPenaltyTest: a 2x50 pair with a 42-base insert and two Q19 errors scores 29.9 and must not be clipped at threshold 30 (it scored 31.7 with the integer penalty and was clipped); the same pair with one Q19 error scores 32.4 and must be clipped.
cindykrafft
force-pushed
the
fix/palindrome-mismatch-penalty
branch
from
September 25, 2026 13:33
71fb53e to
54af058
Compare
Author
|
Thanks! Done: the branch is now a single commit on top of On Happy to add a line to the 0.42 block of Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #90.
calculatePalindromeDifferenceQualitydivided twoints (-qual1 / 10), so a palindromemismatch cost
int(Q/10): nothing below Q10, 1 for Q10–Q19, and so on. Simple mode(
calculateDifferenceQuality) and the README both use Q/10. This divides by10.0fin thetwo branches, as simple mode does.
Adds
IlluminaPalindromeMismatchPenaltyTest: a 2x50 pair with a 42-base insert and twoQ19 errors scores 29.9 under the documented rule and must not be clipped at threshold 30
(it scores 31.7 with the integer penalty and was clipped); the same pair with one Q19
error scores 32.4 and must be clipped. The first test fails on unmodified
main.mvn -B test: 259 tests pass onmain, 261 with this change.Found in Mytochondria, a volunteer project that checks the numerical core of research software and verifies every finding by execution (methods and harnesses: https://github.com/cindykrafft/mytochondria/tree/main/audits/trimmomatic)
Generated by Claude Code