Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python code Finding open reading frames Previously, in Assignment 4, we wrote a crude ORF finder, which only checked for the presence of the standard

python code image text in transcribed

Finding open reading frames Previously, in Assignment 4, we wrote a crude ORF finder, which only checked for the presence of the standard first and last codons (the start and stop codons), as well as the length of the sequence (divisible by three, and therefore possibly coding for amino acids, in absence of introns). Together, we used these three tests for assessing whether a nucleotide sequence may be coding. Here, your new challenge is to write a more complex function get_orf that takes one argument dna and finds an ORF, similar to what you did previously, but with a few wrinkles. The function get_orf will also be useful for your first project of the semester (Project 1), so you may wish to pay close attention. The function get_orf should perform the following tasks: 1. Check if the first three letters are ATG. If so, get orf should continue to the next step, otherwise the function should return an empty string, 2. Find the next in-frame stop codon, and return the sequence from the start to that stop codon. The sequence that is returned should include the start codon but not the stop codon. 3. If there is no in-frame stop codon, get_orf should assume that the reading frame extends through the end of the sequence and simply return the entire sequence. You can confirm that your get_orf function works correctly by running the following test cases. Notice the expected output. Your function should perform identically: >>> get_orf (ACGTGAA') >>> get_orf ('ATGTGAA') ATG >>> get_orf (ATGAGATAAG') ATGAGA >>> get_orf ('ATGAGATAGG) ATGAGA' >>> get_orf ('ATGAGATGAGGGTAA) 'ATGAGA >>> get_orf ('ATGAAATT') ATGAAATT Note that in the last example there is no in-frame stop codon, so the whole string is returned

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

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

ISBN: 3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

Print documents should use fonts. O serif sans serif

Answered: 1 week ago

Question

Address an envelope properly.

Answered: 1 week ago

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago