Alternatively (-l60 to specify fasta line length):
ls *.fasta | sed s,.fasta,, | xargs -i echo seqtk seq -r -l60 {}.fasta \> {}.rev | sh
• 0 views
•
link
I have total 2000+ genome sequence files in a directory. I need reverse complement sequence for each of the files and want to generate FASTA formated reverse complement sequence file for each files in the directory.
for file in *.fasta; do seqtk seq -r ${file} > ${file}_revC; done;
not tested, should work, please install seqtk: https://github.com/lh3/seqtk
Log in to answer this question.
Hi, welcome to Biostars. Look into Biopython, Bioperl etc.