Skip to content

Commit

Permalink
fix non-gzip open
Browse files Browse the repository at this point in the history
gzip.open defaults to binary mode
  • Loading branch information
AroneyS committed Nov 2, 2023
1 parent ace9f4f commit 888267b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aviary/modules/quality_control/scripts/qc_short_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def setup_interleave(reads_1: str, reads_2: str, output_fastq: str, logf):
with gzip.open(reads_2) as f2:
interleave(f1, f2, output_fastq)
else:
with open(reads_1) as f1:
with open(reads_2) as f2:
with open(reads_1, 'rb') as f1:
with open(reads_2, 'rb') as f2:
interleave(f1, f2, output_fastq)

def cat_reads(read_path: str, output_path: str, threads: int, log: str):
Expand Down

0 comments on commit 888267b

Please sign in to comment.