Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions