Question: ----------C PROGRAMMING---------- 2. DNA sequences (dnaSearch.c) A DNA sequence is a sequence of some combination of the characters A (adenine), C (cytosine), G (guanine), and

----------C PROGRAMMING----------

2. DNA sequences (dnaSearch.c) A DNA sequence is a sequence of some combination of the characters A (adenine), C (cytosine), G (guanine), and T (thymine) which correspond to the four nucleobases that make up DNA. Given a long DNA sequence, it is often necessary to compute the number of instances of a certain subsequence. For this exercise, you will develop a program that processes a DNA sequence from a file and, given a subsequence s, searches the DNA sequence and counts the number of times s appears. 3 As an example, consider the following sequence: GGAAGTAGCAGGCCGCATGCTTGGAGGTAAAGTTCATGGTTCCCTGGCCC If we were to search for the subsequence GTA, the output will be: Sample Output: GTA appears 2 times You will write a program (place your source in a le named dnaSearch.c) that takes, as command line inputs, an input le name and a valid DNA (sub)sequence. That is, the le name and the DNA subsequence should be callable from the command line as follows: ./dnaSearch dna01.txt GTA

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!