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

Always call next() on both tokenizers, to make sure both r1 and r2 files are read to the end #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lgruen
Copy link

@lgruen lgruen commented May 14, 2023

There's an edge case where the r2Tokenizer's buffer hasn't read to the end of the r2 file yet, but the conditional r1Tokenizer.next() && r2Tokenizer.next() gets short-circuited, leading to r2Tokenizer.next() not being called. That will trigger assert(inputR2.eof()).

Fixes #41.

…les are read to the end (#1)

* Tokenizer.next() fix for Illumina#41

* Also fix alignDualFastq
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.

Assertion inputR1.eof() failed [new]
1 participant