Skip to content

Commit 3d37a26

Browse files
authored
Add extra compression extension
1 parent ef951de commit 3d37a26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snakemake_wrapper_utils/snakemake.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def get_format(path):
3434
raise ValueError("Path cannot be empty")
3535
exts = Path(path).suffixes
3636
if not exts:
37-
raise ValueError("Path must have an extension")
38-
if exts[-1] in (".gz", ".bgz", ".bz2"):
37+
raise ValueError("Path must have an extension.")
38+
if exts[-1] in (".gz", ".bgz", ".bz2", ".xz"):
3939
ext = exts[-2]
4040
else:
4141
ext = exts[-1]

0 commit comments

Comments
 (0)