Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jun 12, 2024
1 parent 8f52701 commit 2518aa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anglerfish/demux/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def write_demuxedfastq(

gz_buf = 131072
fq_files = cast(list[str], glob.glob(fastq_in))
assert len(fq_files) > 0, f"No fastq files found looking for {fastq_in}."
for fq in fq_files:
with subprocess.Popen(
["gzip", "-c", "-d", fq], stdout=subprocess.PIPE, bufsize=gz_buf
Expand Down

0 comments on commit 2518aa4

Please sign in to comment.