Commit 84aa7b54 authored by Blaise Li's avatar Blaise Li
Browse files

Fastq writer should fail on unexpected read type.

parent d641f506
......@@ -368,6 +368,7 @@ def fq_writer(queue,
if read_type in dest_files:
dest_files[read_type].write(fastq)
else:
assert read_type == "", f"Unexpected read type: {read_type}"
print("No more fastq records to write.")
for dest_file in dest_files.values():
dest_file.flush()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment