Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

The input.txt is as follow:

image text in transcribed

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 ATTCGGATTAACTAGCTAGTCTCGATGCATGATCAGCTTAGCTGATGATGCTATGCA

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

Students also viewed these Databases questions