gzip-compression functionality for reading and writing FASTQ and FASTA files.#107
Merged
ssnn-airr merged 8 commits intoimmcantation:masterfrom Jan 14, 2026
Merged
Conversation
ssnn-airr
reviewed
Jan 12, 2026
bin/AlignSets.py
Outdated
| # For explicit output files, check if gzip is needed | ||
| if out_args.get('gzip_output', False) and not out_file.endswith('.gz'): | ||
| out_file = out_file + '.gz' | ||
| from presto.IO import openFile |
Contributor
There was a problem hiding this comment.
For consistency, I will move this and other imports to the top of the files.
ssnn-airr
reviewed
Jan 14, 2026
Contributor
ssnn-airr
left a comment
There was a problem hiding this comment.
Merged. I made some changes and added some tests to IO and ci.yml, and removed not needed tests and files.
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.
This pull request adds gzip-compression functionality using the standard python library
gzip. Compression is executed (or not) according to file name suffix.Unit tests
Unit tests and toy files have been added.
Help strings
All help strings have been updated to reflect this new capability.
Compression control of autogenerated file names
The default format continues to be uncompressed FASTQ. That means that programmes (like PairSeq.py) writing files to user-defined directories would still write to .fastq unless the user also specifies
--gzip-output, in which case the files will be compressed (.fastq.gz)Consistent suffix abbreviation
If an input files is .fastq (or .fastq.gz), its auto-generated suffix will be .fastq (or .fastq.gz).
If an input files is .fq (or .fq.gz), its auto-generated suffix will be .fq (or .fq.gz).