diff --git a/CHANGES.md b/CHANGES.md index 6ca3c55..e47121a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # CHANGES +## 1.2.1 + +Handle change to how bgzip data is reported by magic decode. + ## 1.2.0 Add `--unique` option to `long-read` mode. Exits as soon as unique read sequence counts are generated. diff --git a/pycroquet/readparser.py b/pycroquet/readparser.py index eb4e4ec..1dd15ed 100644 --- a/pycroquet/readparser.py +++ b/pycroquet/readparser.py @@ -81,7 +81,10 @@ def parse_fq_header(header: str): def is_gzip(seq_file): - return bool("gzip compressed data" in magic.from_file(seq_file)) + magic_types = magic.from_file(seq_file) + if "gzip compressed data" in magic_types or "gzip compatible" in magic_types: + return True + return False def parse_reads( diff --git a/setup.py b/setup.py index db8a6e7..8dde923 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ "author": "Keiran M Raine", "url": "https://github.com/cancerit/pycroquet", "author_email": "cgphelp@sanger.ac.uk", - "version": "1.2.0", + "version": "1.2.1", "license": "AGPL-3.0", "python_requires": ">= 3.9", "install_requires": ["click", "click-option-group", "python-magic", "pysam", "pygas", "PyYAML"],