I need to make a script in order to compare two fasta sequences. I want to find pattern variation in regard to the nucleotides (codons), their position, and of course the related aa.
Some further information would be great. Are the sequences in the two files ordered in the same way? Do you want pairwise comparison of all sequences in the 2 files (each against each)? Do you have to use Biopyhton or are other languages possible? Have you ever heard somethin about global alignment?
You should not be writing any script to compare two fasta sequences. There are tons of alignment software out there, a list of which can be found here. Look under the "pairwise comparison" category.
There are also online tools that you can use, such as bl2seq or CLUSTALW.
Some further information would be great. Are the sequences in the two files ordered in the same way? Do you want pairwise comparison of all sequences in the 2 files (each against each)? Do you have to use Biopyhton or are other languages possible? Have you ever heard somethin about global alignment?