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

When 0 reads remain after decontamination, an invalid gzip file is created #24

Closed
bede opened this issue Jul 23, 2023 · 1 comment
Closed
Labels
bug Something isn't working
Milestone

Comments

@bede
Copy link
Owner

bede commented Jul 23, 2023

Samtools considers an empty SAM/BAM file invalid, irritatingly. Workaround is to create empty but valid gzip file e.g.:

with gzip.open('empty.fastq.gz', 'wb') as f:
    pass
@bede bede added this to the 1.0.0 milestone Dec 23, 2023
@bede bede added the bug Something isn't working label Dec 23, 2023
@bede
Copy link
Owner Author

bede commented Jan 13, 2024

Fixed in 0b5ad56

@bede bede closed this as completed Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant