How to convert multiple .fa file to .fastq in Shell
2
0
Entering edit mode
8.2 years ago

Hello everyone,

I know how to convert 1 .fa to .fastq but not many as a time in Shell

perl fasta_to_fastq.pl reads.fasta > my_converted_fasta.fq

please help me with this! Thank you very much!

Assembly • 2.8k views
ADD COMMENT
0
Entering edit mode

use faToFastq utility and loop through your fasta files

ADD REPLY
1
Entering edit mode
8.2 years ago

Using BBMap:

cat *.fasta | reformat.sh in=stdin.fa out=x.fq

There are few situations where this would be useful.

ADD COMMENT
0
Entering edit mode
8.2 years ago

Assuming that script is valid you can probably just do a loop over the input files, e.g.:

for f in *.fasta ; do perl fasta_to_fastq.pl $f > $f.conv.fq ; done

ADD COMMENT

Login before adding your answer.

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