Skip to content

Commit

Permalink
Fix sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
fgvieira committed Sep 30, 2024
1 parent 16ee096 commit 72b6548
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bio/seqkit/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
__license__ = "MIT"

from snakemake.shell import shell
from pathlib import Path


extra = snakemake.params.get("extra", "")
Expand Down Expand Up @@ -38,7 +39,11 @@


if snakemake.params.get("out_bgzip"):
assert Path(snakemake.output[0]).suffix in [".gz", ".bgz", ".bgzip"], "invalid output file extension"
assert Path(snakemake.output[0]).suffix in [
".gz",
".bgz",
".bgzip",
], "invalid output file extension"
input = input + f" | bgzip --threads {snakemake.threads} > {snakemake.output[0]}"
else:
input = f"--out-file {snakemake.output[0]} " + input
Expand Down

0 comments on commit 72b6548

Please sign in to comment.