Biostar Beta. Not for public use.
Bash and seqret problem
0
Entering edit mode
12 months 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!

ADD COMMENTlink
0
Entering edit mode

You can try to put it in a for loop.

ADD REPLYlink
2
Entering edit mode
3 months ago
Joe 12k
United Kingdom

Or use parallel:

ls *.aln | parallel "seqret {} {.}.fasta"
ADD COMMENTlink
0
Entering edit mode

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

ADD REPLYlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1