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

Fixes issue in BGZFSplitGuesser relating to incomplete copy. #149

Merged
merged 1 commit into from
Aug 25, 2017

Conversation

fnothaft
Copy link
Contributor

Supersedes #142. Uses fixed copying logic from BAMSplitGuesser. I've done a quick set of tests using BGZFed FASTQs and this seems to be sufficient.

@tomwhite I'd begun looking at extending BaseSplitGuesser, but there's enough of a divergence of the fields between the two classes that this is a non-trivial change.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 62.293% when pulling 6ba366d on fnothaft:bgzf-split-copy into a162405 on HadoopGenomics:master.

@tomwhite tomwhite merged commit 8a8b7a4 into HadoopGenomics:master Aug 25, 2017
fnothaft added a commit to fnothaft/Hadoop-BAM that referenced this pull request Dec 25, 2017
…plitGuesser

Stems out of work done in HadoopGenomics#142 and HadoopGenomics#149. Refactors BGZFSplitGuesser to use the
logic in the BaseSplitGuesser class. To do this, we need to make
BaseSplitGuesser public. Additionally, we replace the logic that is used in
BaseSplitGuesser to identify the start of a BGZF block with logic that doesn't
require copying bytes from the input stream to a buffer. This improves the
performance of identifying the start of a BGZF block; for whatever reason, that
copy to the buffer/methods on the buffer are expensive.
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.

3 participants