Question: please solve this code challenge and show me the code you used. write the code in python and please show me how your notebook looks
Given a profite matrix Profit, we can evaluate the probability of every k mer in a string Text and find a Profile-most probable k mer infertile, a k-mer that was most likely to have been generated by Profile among all mers in Text. For example, ACGGGGATTACC is the Profile most probable 12 mer in GG TACGGGGATTACCT Indeed, every other 12 mer in this string hos probability 0. In general, if there are multi Profile most probable kmers in Text, then we select the first such k-mer occurring in Text Profile most probable k-mer Problem: Find a Profile most probablek mer in a string Input: A string Text, an integer and a 4 ** matrix Profie Output: A Profile-most probablemer in Text Code Challenge: Solve the problemost probable k met Problem, Extra Dataset Debug Dataset Sample Input: ACCTGTTTATTGCCTAAOTTOCGAACAAACCCAATATAGCO GAGGGCCT 5 0.2 0.2 0.3 0.2 0.3 0.4 0.3 0.1 0.5 0.1 0.3 0.3 0.5 0.2 0.4 0.1 0.2 0.1 0.1 9.2 Sample Output: CCGAG 131 PM DI Given a profite matrix Profit, we can evaluate the probability of every k mer in a string Text and find a Profile-most probable k mer infertile, a k-mer that was most likely to have been generated by Profile among all mers in Text. For example, ACGGGGATTACC is the Profile most probable 12 mer in GG TACGGGGATTACCT Indeed, every other 12 mer in this string hos probability 0. In general, if there are multi Profile most probable kmers in Text, then we select the first such k-mer occurring in Text Profile most probable k-mer Problem: Find a Profile most probablek mer in a string Input: A string Text, an integer and a 4 ** matrix Profie Output: A Profile-most probablemer in Text Code Challenge: Solve the problemost probable k met Problem, Extra Dataset Debug Dataset Sample Input: ACCTGTTTATTGCCTAAOTTOCGAACAAACCCAATATAGCO GAGGGCCT 5 0.2 0.2 0.3 0.2 0.3 0.4 0.3 0.1 0.5 0.1 0.3 0.3 0.5 0.2 0.4 0.1 0.2 0.1 0.1 9.2 Sample Output: CCGAG 131 PM DI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
