Seqtk Seq Unable To Convert A Fastq File To Fasta
Hi everyone, I downloaded Seqtk, gunzip it, then make, and finally cp seqtk /usr/local/bin. However, when running seqtk seq -A in.fq > out.fa, it gives empty out.fa. What's my problem you think? Thank you for your suggestions!!
• 5,493 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Do you receive an error message?
If you did not receive any errors compiling, it may be an issue with your input file. Can you verify that the file is not empty and is correctly formatted?
The fastq file is correct. I have used
sed -n '1~4s/^@/>/p;2~4p' in.fq > out.fato do the job. I didn't reveive any error message from seqtk. Anyway, thx for reply.perhaps include the first two records of your fastq file
HI Istvan, following are two records at the beginning of the fastq file, pls see if there are errors. THANKS!
Interestingly, when coping the first two records of the fastq file to a new file, and then run seqtk on this new fastq file, i got a correct fasta file. I don't know why the original fastq file doesn't work.
this sounds like a line ending problem of some sorts. UNIX style line endings vs Windows
i used two commands
sed -n '1~4s/^@/>/p;2~4p' in.fq > out.faandseqret -sequence in.fq -out out.fato convert fastq file to fasta file. However the two commands generate different although similar sized files. Is it right? THANKS for any comments!These two commands do produce different files. But when
tail file -n 6I foundsedproduced each sequence at one line, whereasseqretproduced each sequence at two lines.The two files are different, but contain the same number of seqeunces. Both are right.