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

"ValueError: Length of quality sequence and length of read do not match (81+0!=80)" #19

Closed
marcelm opened this issue Mar 13, 2015 · 3 comments
Labels

Comments

@marcelm
Copy link
Owner

marcelm commented Mar 13, 2015

From gregorym...@gmail.com on February 14, 2011 20:03:17

I have a fastq file with 80 nt long reads. The quality lines also have a length of 80 but cutadapt is reporting that they are not equal. I have run other adapter sequence removing programs that have run just fine. What can I do to fix this?

Original issue: http://code.google.com/p/cutadapt/issues/detail?id=9

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on February 15, 2011 11:58:16

This sounds like a DOS/Windows line end issue. Your FASTQ file may have DOS line endings. Please try to open the file lib/cutadapt/fasta.py and replace the line

qualities = line[:-1]

(around line 26) with the line

qualities = line.rstrip("\n\r")

and re-try.

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From gregorym...@gmail.com on February 15, 2011 12:21:37

Thank you very much. That worked perfectly.

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on February 16, 2011 01:44:44

Great, then the next release will include this change. Thanks for the report!

Status: Verified

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

No branches or pull requests

1 participant