Skip to content

Commit

Permalink
Changes to resolve #3
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranmraine committed Nov 1, 2021
1 parent 1df9a3d commit 6c5b516
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 6c5b516

Please sign in to comment.