I've started learning some algorithms for solving the multiple alignment problem, but there are still things not clear for me in the greedy and progressive methods and I still couldn't find the answer.
In the greedy algorithm, I understood that the score for the pairwise alignments is = Matches - Gaps, but when forming the consensus what is the strategy? For example on this case:
GATATT-
G-TCTGA
consensus: GATCTG
Do we have to always choose a letter until we get a consensus sequence of the same size of the starting ones? Because we started by choosing A instead of the gap, but in the end we didn't put an A.
And now imagine that I've already aligned the two most similar sequences. When putting the third one, do I have to align it with the consensus sequence from the other two and add gaps as necessary, like in progressive alignment?
So apart from how we calculate similarity and the guide tree, the big difference between greedy and progressive algorithms is how we get the final consensus? Because on the progressive algorithm, although we have to be forming the consensus along the alignment process, the final one will be based on a profile.
Thank you.
What do you mean by "greedy algorithm"?http://en.wikipedia.org/wiki/Greedy_algorithm
I never heard getting a consensus out of a pairwise alignment, seems kind of pointless to me
I never heard getting a consensus out of a pairwise alignment, why would you want to get this?