Platanus file format error
1
0
Entering edit mode
8.2 years ago

Hi I've tried running

platanus assemble -o plat_errorcorrected -k 60 -f *pair1.fastq *pair2.fastq 2> plat.log

and I get:

Error(2): Read file exception 
Read file is not FASTA/FASTQ format!!

They are fastq format though.'ve trimmed these reads with skewer and corrected using BFC. Reads that were only trimmed and not error corrected were able to be assembled using Platanus and when I tried converting these fastq to fasta, it still would give the same error. These same fastq files were able to be assembled by ABySS. Any advice? Has anyone ever encountered this?

Thanks in advance

Assembly software error • 2.4k views
ADD COMMENT
0
Entering edit mode

please, show us the output of the following commands:

head  *pair1.fastq *pair2.fastq

and

file  *pair1.fastq *pair2.fastq
ADD REPLY
0
Entering edit mode
7.8 years ago
memory_donk ▴ 380

Ok so I just had the exact same problem and after losing about half of my hair I figured it out. BFC outputs some letters as lowercase and Platanus doesn't seem to like that. I used a sed one-liner to convert all bases to uppercase and it started running. Obviously only use this on fasta or you could mess with quality scores. Use another command as appropriate to capitalize only sequence line in fastq.

sed -e 's/(.*)/\L\1/' test.fasta > testb.fasta

ADD COMMENT

Login before adding your answer.

Traffic: 2088 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