How to convert FASTQ to FASTA
3
0
Entering edit mode
2.5 years ago
Ching • 0

I downloaded a fastq.gz file from ENA browser but can't open it. How can I convert the file to fasta format? https://www.ebi.ac.uk/ena/browser/view/SRR16952091?show=reads

fasta fastq • 4.0k views
ADD COMMENT
0
Entering edit mode
> but can't open it

Can you elaborate on this?

ADD REPLY
2
Entering edit mode
2.5 years ago
GenoMax 143k

Assuming you have done nothing else to the file you can use reformat.sh from BBMap suite.

reformat.sh -Xmx2g in=SRR16952091.fastq.gz out=SRR16952091.fasta

Output file will be in fasta format but uncompressed. So it will be significantly larger. To keep it compressed you can add .gz extension to fasta file name.

ADD COMMENT
2
Entering edit mode
2.5 years ago
jkim ▴ 170

seqtk. https://github.com/lh3/seqtk

seqtk seq -a in.fq.gz > out.fa

ADD COMMENT
0
Entering edit mode
2.5 years ago
margarett • 0

You can also use Galaxy to convert your files [https://usegalaxy.org/]

ADD COMMENT

Login before adding your answer.

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