Bash and seqret problem
1
0
Entering edit mode
2.7 years ago
MichaelTrev ▴ 10

Hi! This time I have a problem with bash. I'm working on Linux, but bash is unfamiliar to me. I need to change format clustal to fasta. Someone help me in another post, and I know I can do that with seqret.

So now: i have in directory 40 files with ".aln" end. I can manually by terminal type

seqret <file.aln> <output.fasta>


But I need to do that automatically. Can someone tell me how to do it so that all files in dir are changed with one script? I'm asking for help coz I need results quickly, and I can not deal with this issue (i will learn bash asap). I need result in separate files. Thanks in advance!

bash seqret script • 734 views
0
Entering edit mode

You can try to put it in a for loop.

2
Entering edit mode
2.7 years ago
Joe 19k

Or use parallel:

ls *.aln | parallel "seqret {} {.}.fasta"

0
Entering edit mode

I'ts working, awesome! Thank U for help. I should definitely read about it ;)