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

Error in dnaio #6

Closed
sprakashUTH opened this issue Apr 2, 2021 · 2 comments
Closed

Error in dnaio #6

sprakashUTH opened this issue Apr 2, 2021 · 2 comments

Comments

@sprakashUTH
Copy link

sprakashUTH commented Apr 2, 2021

When running cutadapt 3.1 to process FASTQ files, I receive the following fatal error:
File "/usr/local/lib/python3.7/site-packages/cutadapt/pipeline.py", line 571, in run
dnaio.read_paired_chunks(f, f2, self.buffer_size)):
File "/usr/local/lib/python3.7/site-packages/dnaio/chunks.py", line 111, in read_paired_chunks
raise ValueError("FASTQ record does not fit into buffer")
ValueError: FASTQ record does not fit into buffer

The error occurs a little over half the time. Other FASTQ files process normally. Have you seen a similar issue? How can I prevent this?

@marcelm
Copy link
Owner

marcelm commented Apr 3, 2021

Can you please say what is in those FASTQ files? In particular: Are these long reads and if so, do you know how long they are?

The buffer size is 4 million by default, so a read of length ~2 million should fit into that buffer (nucleotides plus qualities), assuming that the length of the read name is negligible. I would like to know whether I have to increase that default.

To prevent this, you can increase the buffer size by using the hidden cutadapt option --buffer-size. Just add something like --buffer-size=10000000 to your command-line options.

@marcelm
Copy link
Owner

marcelm commented Feb 16, 2022

Since we cannot reproduce this and there hasn’t been any feedback, I’ll close this now.

@marcelm marcelm closed this as completed Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants