Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cutadapt compression level problem #152

Closed
uniqueg opened this issue Feb 1, 2024 · 0 comments · Fixed by #153
Closed

fix: Cutadapt compression level problem #152

uniqueg opened this issue Feb 1, 2024 · 0 comments · Fixed by #153
Labels
bug Something isn't working
Milestone

Comments

@uniqueg
Copy link
Member

uniqueg commented Feb 1, 2024

Problem

Executing ZARP gives the following error:

This is cutadapt 3.4 with Python 3.9.18
Command line parameters: -j 4 -a AGATCGGAAGAG -g nan -m 1 -n 2 -m 10 -o /home/user/.zarp/zarp/results/samples/SRR23590181.fastq/SRR23590181.fastq.fq1.se.remove_adapters.fastq.gz /home/user/.zarp/zarp/results/samples/SRR23590181.fastq/start/SRR23590181.fastq.fq1.fastq.gz
Processing reads on 4 cores in single-end mode ...
ERROR: Traceback (most recent call last):
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/cutadapt/pipeline.py", line 552, in run
    with self._opener.xopen(self.path, 'rb') as f:
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/cutadapt/utils.py", line 186, in xopen
    f = open_raise_limit(
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/cutadapt/utils.py", line 51, in open_raise_limit
    f = func(*args, **kwargs)
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/xopen/__init__.py", line 1268, in xopen
    opened_file = _open_gz(
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/xopen/__init__.py", line 1071, in _open_gz
    g = _open_reproducible_gzip(
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/xopen/__init__.py", line 1102, in _open_reproducible_gzip
    gzip_file = igzip.IGzipFile(**kwargs, compresslevel=compresslevel)
  File "/home/user/.zarp/zarp/.snakemake/conda/ENV_HASH/lib/python3.9/site-packages/isal/igzip.py", line 155, in __init__
    raise ValueError(
ValueError: Compression level should be between 0 and 3.

All rules up to Cutadapt ran fine.

To reproduce

The following ZARP-cli command (with default init values) should lead to the error:

zarp --verbosity=DEBUG SRR23590181

Other calls/samples and calling ZARP manually caused the same issue.

OS: Ubuntu 20.04

@uniqueg uniqueg added the bug Something isn't working label Feb 1, 2024
@uniqueg uniqueg added this to the Submission milestone Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant