Entering edit mode
3.8 years ago
ehsansepahi
▴
10
I used Biopython pairwise2 to globally align two sequences. Is there any tool or algorithm to unify (combine, merge, I don't know the best term for this action) these two sequences based on their global alignment?
Thanks for your response. I knew about EMBOSS and it is included in Biopython, but, the consensus sequence (or canonical sequence) is the calculated order of most frequent residues, either nucleotide or amino acid, found at each position in a sequence alignment. consensus is for multiple alignment. I am looking something suitable for global pairwise alignment. Thank you again.
whether it's global or local alignment that does not make a difference.
Yes, the pairwise <-> MSA will indeed make a difference in the sense that it will not for every position will be able to resolve the 'consensus'. That being said, what kind of behaviour are you looking for than?
alternatively you could 'assemble' those sequences (with an assembly tool) but that will omit the output of the alignment all together.