Skip to content

Commit

Permalink
fix: fixed read filter.py for read_length=0 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeising authored Jul 11, 2024
1 parent 966e059 commit 992346b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/read_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def is_zipped(fname):

if snakemake.config["min_length"] <= 0:
if is_zipped(snakemake.input[0]):
with gzip.open(snakemake.input[0], "wb") as f_in, open(
snakemake.output[0], "wb"
with gzip.open(snakemake.input[0], "rt") as f_in, open(
snakemake.output[0], "wt"
) as f_out:
shutil.copyfileobj(f_in, f_out)
else:
Expand Down

0 comments on commit 992346b

Please sign in to comment.