Question: 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

 Finding open reading frames Previously, in Assignment 4, we wrote a

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

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