Question: Processing DNA in a File (Page 93) (The text for the problem is shown below.) The file input.txt contains a number of DNA sequences, one

Processing DNA in a File (Page 93) (The text for the problem is shown below.) The file input.txt contains a number of DNA sequences, one per line. Each sequence starts with the same 14 base pair fragment - a sequencing adapter that should have been removed. Write a program that will

(a) trim this adapter and write the cleaned sequences to a new file and

(b) print the length of each sequence to the screen. Download the file here.

Here is the data from the file as well. ATTCGATTATAAGCTCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATC ATTCGATTATAAGCACTGATCGATCGATCGATCGATCGATGCTATCGTCGT ATTCGATTATAAGCATCGATCACGATCTATCGTACGTATGCATATCGATATCGATCGTAGTC ATTCGATTATAAGCACTATCGATGATCTAGCTACGATCGTAGCTGTA ATTCGATTATAAGCACTAGCTAGTCTCGATGCATGATCAGCTTAGCTGATGATGCTATGCA

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 Programming Questions!