Creating alignments for 800+ multifasta files
The above link will send you to a post that is very similar to mine.
I have multiple multifasta files that need to be aligned using mafft in succession, just as the before mentioned post. However, I need to output not just the alignment, but the consensus sequences of the alignment. It would be great if the consensus sequence could be printed out only, separate from the actual alignment.
Any ideas of how to work that into the code provided in the earlier post?
Thanks so much,
-Rob
1 answer
I was able to figure it out. With mafft installed and configured, use the following commands in the directory where all your files are.
for fasta_file in $(ls *.txt)
do mafft $fasta_file > $fasta_file.out
done
Log in to answer this question.