Bash and seqret problem
1
0
Entering edit mode
5.2 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 • 1.3k views
ADD COMMENT
0
Entering edit mode

You can try to put it in a for loop.

ADD REPLY
2
Entering edit mode
5.2 years ago
Joe 21k

Or use parallel:

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

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

ADD REPLY

Login before adding your answer.

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