Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranmraine committed Nov 1, 2021
2 parents 1df9a3d + 6c5b516 commit aecf8e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 4 additions & 1 deletion pycroquet/readparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"author": "Keiran M Raine",
"url": "https://github.com/cancerit/pycroquet",
"author_email": "[email protected]",
"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"],
Expand Down

0 comments on commit aecf8e8

Please sign in to comment.