Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (10 points) - Sequence alignment is used to compare DNA fragments and to determine similarities between species. Write a python function that automatically aligns
1. (10 points) - Sequence alignment is used to compare DNA fragments and to determine similarities between species. Write a python function that automatically aligns the given two sequences and returns the alignment score of the following sequences called gene1 and gene2 where the highest alignment occurs when matching score equals to 4 (shown below). Your program should check all possible alignments until finds the best matching score by shifting the second sequence. For example, in the first step, only base pair at fifth position (t') matches, therefore printed score is 1. When you shift the gene2 for two base pairs, score becomes 4, since 'g ta t' sequence matches in both sequences. Type your code: Gene1='t a agtat Gene2='g gtatga' aligment score is 1 aligment score is aligment score is 4 aligment score is 1 aligment score is 1 aligment score is aligment score is 0 In [92]: IPython console History
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started