Question: i hope this is what your asking for. Problem 2. Processing DNA in a File (Page 93) (The text for the problem is shown below.)

Problem 2. 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. ATTCGATTATAAGCTCGATCGATCGATCGATCGATCGATCGATCGA TCGATCGATC ATTCGATTATAAGCACTGATCGATCGATCGATCGATCGATGCTATC GTCGT ATTCGATTATAAGCATCGATCACGATCTATCGTACGTATGCATATC GATATCGATCGTAGTC ATTCGATTATAAGCACTATCGATGATCTAGCTACGATCGTAGCTGT A ATTCGATTATAAGCACTAGCTAGTCTCGATGCATGATCAGCTTAGC TGATGATGCTATGCA ATTCGATTATAAGCACTAGCTAGTCTCGATGCATGATCAGCTTAGC TGATGATGCTATGCA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
