How to convert multiple .fa file to .fastq in Shell
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!
• 3,248 views
•
link
2 answers
Using BBMap:
cat *.fasta | reformat.sh in=stdin.fa out=x.fq
There are few situations where this would be useful.
• 0 views
•
link
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
• 0 views
•
link
Log in to answer this question.
use faToFastq utility and loop through your fasta files