Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The input.txt is as follow: ATTCGGATTATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATC ATTCGGATTAACTGATCGATCGATCGATCGATCGATGCTATCGTCGT ATTCGGATTAGTCGATCACGATCTATCGTACGTATGCATATCGATATCGATCGTAGTC ATTCGGATTAACTATCGATGATCTAGCTACGATCGTAGCTGTA ATTCGGATTAACTAGCTAGTCTCGATGCATGATCAGCTTAGCTGATGATGCTATGCA The file input.txt contains a number of DNA sequences, one per line. Each sequence starts
The input.txt is as follow:
ATTCGGATTATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATC ATTCGGATTAACTGATCGATCGATCGATCGATCGATGCTATCGTCGT ATTCGGATTAGTCGATCACGATCTATCGTACGTATGCATATCGATATCGATCGTAGTC ATTCGGATTAACTATCGATGATCTAGCTACGATCGTAGCTGTA ATTCGGATTAACTAGCTAGTCTCGATGCATGATCAGCTTAGCTGATGATGCTATGCA
The file input.txt contains a number of DNA sequences, one per line. Each sequence starts with the same 10 base pair fragment - a sequencing adapter that should have been removed. Write a program, that you name remove_adapter.py, that will a) trim this adapter (i.e., remove the adapter) and write the cleaned sequences to a new file that you name trimmed.txt, and b) print the length of each sequence to the screen. Do not forget to use Python Coding Style conventions. ATTCGGATTATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATC ATTCGGATTAACTGATCGATCGATCGATCGATCGATGCTATCGTCGT ATTCGGATTAGTCGATCACGATCTATCGTACGTATGCATATCGATATCGATCGTAGTC ATTCGGATTAACTATCGATGATCTAGCTACGATCGTAGCTGTA ATTCGGATTAACTAGCTAGTCTCGATGCATGATCAGCTTAGCTGATGATGCTATGCAStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started