Skip to content

Commit

Permalink
tools/pal_finder: fix 'fastq_subset.py' utility when dealing with big…
Browse files Browse the repository at this point in the history
… Fastqs.
  • Loading branch information
pjbriggs committed Apr 13, 2021
1 parent ca5fc3e commit b888abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pal_finder/fastq_subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def count_reads(fastq):
n = 0
with open(fastq,'r') as fq:
while True:
buf = fq.read()
buf = fq.read(CHUNKSIZE)
n += buf.count('\n')
if buf == "": break
return n/4
Expand Down

0 comments on commit b888abb

Please sign in to comment.