Question: c++ write function int countMatches(string genome, string sequence1, float min score) The countMatches function takes three parameters, a string containing the genome to search, a

c++ write function

c++ write function int countMatches(string genome, string sequence1, float min score) The

int countMatches(string genome, string sequence1, float min score) The countMatches function takes three parameters, a string containing the genome to search, a string containing the sequence to find, and a floating point value containing the minimum similarity score that will be considered a match. The function does the following: The function should find all the positions of the genome where the genome's substring matches sequence1 with a similarity greater than or equal to the min score. The function should return the count of the number of such positions it found. Example: n matches countMatches(cCGCCGCCGA", CGC", 0.60); Matching genome to cc at 0.60 similarity. The sequence CGC matches 100% at position 1 and 4. Position 7 matches at 67%, still above the threshold. Therefore, the value returned by the function would be 3. int countMatches(string genome, string sequence1, float min score) The countMatches function takes three parameters, a string containing the genome to search, a string containing the sequence to find, and a floating point value containing the minimum similarity score that will be considered a match. The function does the following: The function should find all the positions of the genome where the genome's substring matches sequence1 with a similarity greater than or equal to the min score. The function should return the count of the number of such positions it found. Example: n matches countMatches(cCGCCGCCGA", CGC", 0.60); Matching genome to cc at 0.60 similarity. The sequence CGC matches 100% at position 1 and 4. Position 7 matches at 67%, still above the threshold. Therefore, the value returned by the function would be 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!