You can either use numpy for this, or you could just generate the matrix as follows. A method to compute the optimal sequence.Ĭreating a 2-dimensional array to hold the matrix, F.A method to initialise matrix F with the scores.Create a 2-dimensional array to hold the matrix, F.What this matrix allows you to do is to find the most optimal one and discard all the other sequences. When aligning sequences, there can be many possibilities. It is essentially made up of two components: The Needleman-Wunsch algorithm is a method used to align sequences. However, I will guide you into producing a working solution. This looks like a homework/coursework question so I won't give you the full solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |