Question: Function 3 : find _ max _ consecutive This function will have two parameters: dna ( type: str ) : The DNA strand to search
Function : findmaxconsecutive
This function will have two parameters:
dna type: str: The DNA strand to search for the STRs in
target type: str: The STR egATAC that you are searching for.
It should return the following type of value: int
This function should return the maximum number of times the target STR shows up consecutively in the given DNA sequence. The algorithm for finding this information will be a bit tricky so you should start by coming up with some small examples, eg a DNA sequence of ATAACACTT and an STR of AC
Here is a hint: you may want to create a separate function that tells you how many times the target sequence repeats starting at a given index in the string. For example, this would tell you AC repeats times starting at index while it would tell you AC repeats times if you starting at index
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
