mazzalab / fastqwiper

An ensemble method to recover corrupted FASTQ files, drop or fix pesky lines, remove unpaired reads, and settle reads interleaving.
GNU General Public License v3.0
25 stars 3 forks source link

ValueError: min() arg is an empty sequence #10

Closed Jinntty closed 1 year ago

Jinntty commented 1 year ago

Hello, my fastq file is damaged and I want to use your software to repair it. But now I encounter some problems. Fastq1 reports an error and fastq2 is still running. How to solve it?

2023-10-30 01:17:27,753 - fastq_wiper/wiper.py(print_log_during_reading) - INFO - Cleaned 375000000 reads 2023-10-30 01:17:54,546 - fastq_wiper/wiper.py(print_log_during_reading) - INFO - Cleaned 375500000 reads Traceback (most recent call last): File "~/miniconda3/bin/fastqwiper", line 11, in sys.exit(wipe_fastq()) File "~/miniconda3/lib/python3.9/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "~/miniconda3/lib/python3.9/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "~/miniconda3/lib/python3.9/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "~/miniconda3/lib/python3.9/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) File "~/miniconda3/lib/python3.9/site-packages/fastq_wiper/wiper.py", line 363, in wipe_fastq qual = fix_qual_line(line, checkpoint_flags) File "~/miniconda3/lib/python3.9/site-packages/fastq_wiper/wiper.py", line 115, in fix_qual_line min_ascii = min(ord(c) for c in line) ValueError: min() arg is an empty sequence

mazzalab commented 1 year ago

We have released a new version that should fix this issue. Please give us a feedback