Cutadapt Assertionerror
1
0
Entering edit mode
11.9 years ago
zhidong.yuan ▴ 20

Could someone please help me with the problem produced from using cutadapt? Thanks.

$cutadapt -c -e 0.12 -a 330201030313112312 -m 15 --bwa -f fastq SRR029966.fastq

Traceback (most recent call last): File "/usr/bin/cutadapt", line 600, in <module> sys.exit(main()) File "/usr/bin/cutadapt", line 570, in main desc, seq, qualities, trimmed = cutter.cut(desc, seq, qualities) File "/usr/bin/cutadapt", line 386, in cut assert not qualities or len(seq) == len(qualities) AssertionError

• 2.2k views
ADD COMMENT
0
Entering edit mode

Debugging strategy #1: find the offending sequence. Show it to us.

ADD REPLY
1
Entering edit mode
11.9 years ago
Ryan Dale 5.0k

From the error message, it looks like for at least one read the sequence length is not the same as the quality string length.

Perhaps your version of the fastq file got truncated somehow? A tail on the fastq file might reveal a truncation problem.

Running cutadapt v1.0 on a fresh copy of SRR029966.fastq from the SRA works fine for me, so you could always just re-download (and/or update your cutadapt version) and try again.

ADD COMMENT
0
Entering edit mode

Thank you, Daler. I have re-downloaded the cutadapt (v1.0). And it can work now.

ADD REPLY

Login before adding your answer.

Traffic: 2218 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6