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

fix: Ensure complete reading of multi-member .gz FASTA files #14

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

ykozxy
Copy link
Contributor

@ykozxy ykozxy commented Feb 27, 2024

flate2::read::GzDecoder only reads the first member in a multi-member gzip file, which can result in incomplete reading of the reference FASTA file.

Replacing it with flate2::read::MultiGzDecoder ensures that all members of the input gzipped FASTA file can be processed, aligning the decoding behavior with standard tools like gzip, gunzip, and zcat.

`flate2::read::GzDecoder` only reads the first member in a multi-member gzip file, which can result in incomplete reading of the reference FASTA file.

Replacing it with `flate2::read::MultiGzDecoder` ensures that all members of the input gzipped FASTA file can be processed, aligning the decoding behavior with standard tools like `gzip`, `gunzip`, and `zcat`.
Copy link

google-cla bot commented Feb 27, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ykozxy ykozxy marked this pull request as draft February 27, 2024 07:09
@ykozxy ykozxy marked this pull request as ready for review February 27, 2024 07:09
@Daniel-Liu-c0deb0t
Copy link
Collaborator

Thanks for finding and fixing this bug :)

@Daniel-Liu-c0deb0t Daniel-Liu-c0deb0t merged commit c1c69bb into google:main Feb 27, 2024
1 check failed
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.

2 participants