I have a tool to compare alignment. Command is
./mscore -cftit <inputFile> <inputFile2>
And the result is four lines in the console. What I try to do?
I have hundreds files:
file1.afa
resFile1.fasta
file2.afa
resFile2.fasta
file3.afa
resFile3.fasta
...
I need to put into arguments in first-row "X.afa" file and in second same name but "X.fasta" file. The result should be saved as Xfinal.txt file or something like that. So I should have hundreds of *final.txt files. (after I will cat it in python, and count).
How can i do that in bash?
I have tried something like this:
#!/bin/bash
ls *.afa | parallel "mscore -cftit {} {}.fasta >{}final.txt"
but of course, it didn't work. Bash it's not familiar to me, I need to just have fast some biological results and I want to automatize my job. I will learn it but now I need it fast. Can someone help me?