Skip to content

Commit

Permalink
fixes gzip support when counting small files
Browse files Browse the repository at this point in the history
  • Loading branch information
brwnj committed Jun 25, 2018
1 parent 5019841 commit b053395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hundo/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ def count_sequences(filename):
import gzip

f = gzip.open(filename, "rb")
f_gen = _make_gen(f.read)
else:
f = open(filename, "rb")
f_gen = _make_gen(f.raw.read)
f_gen = _make_gen(f.raw.read)
return sum(buf.count(b'\n') for buf in f_gen) / 4


Expand Down
2 changes: 1 addition & 1 deletion hundo/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.17"
__version__ = "1.1.18"

0 comments on commit b053395

Please sign in to comment.