Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

First part is already done here is the link https://www.chegg.com/homework-help/questions-and-answers/learning-objectives-working-strings-python-basic-functions-python-elif-else-lists-understa-q23797199 I need second part please. Learning Objectives Working with strings in Python Basic functions in

First part is already done here is the link https://www.chegg.com/homework-help/questions-and-answers/learning-objectives-working-strings-python-basic-functions-python-elif-else-lists-understa-q23797199

I need second part please.

Learning Objectives

Working with strings in Python

Basic functions in Python

if/elif/else

Lists

Understanding DNA transcription and translation

Part 1. A DNA string is called an open reading frame (ORF) if it begins with ATG, ends with TGA, TAG, or TAA, and has a length that is a multiple of 3. ORFs are interesting because they can encode proteins.Write a function called orf_advisor(dna) that takes a string called dna (you can make up your own DNA string or copy one from Genbank) as input and works as follows:

The function orf_advisor(dna) returns the string This is an ORF. if the input string satises all three of the conditions required of ORFs.

Otherwise, if the rst three symbols are not ATG , the function returns the string The rst three bases are not ATG..

Otherwise, if the string does not end with TGA, TAG, or TAA, the function returns the string The last three bases are not a stop codon..

Otherwise, the function returns the string The string is not of the correct length.

Part 2. Write a function called codon_nder(mrna) where the input is expected to be a string named mrna representing the mRNA sequence UGUAUAAGGCCGAGG (remember, U replaces T in RNA). Your function should:

Oops- it turns out that your mRNA is in the 3 to 5 direction. Using string splicing (Zybooks chapter 7.1), your function should reverse the sequence so that its in the correct 5 to 3 direction. Hint: my_str[::-1] will do this.

Now that your mRNA sequence is in the correct orientation, your function should create a list (Zybooks 3.2) that contains each codon as an element in the order that it appears in the mRNA sequence.

Change the rst codon in the list to a start codon (AUG) and append the list with a stop codon (UAA, UAG, or UGA) at the end.

Use the codon translation and amino acid abbreviations tables (in lecture slides or Google) to nd the one letter code for each aminoacid that corresponds to each codon in your list. Include the start codon, which encodes an amino acid, but do not include the stop codon. Print The codons[insert your list] make a protein that is [insert protein sequence here]" so that the italicized text is replaced with the appropriate answers.

Return the list.

Add the answers you got from running your program to the top of the program as comments.

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

Why did you want to work in HR?

Answered: 1 week ago

Question

First part is already done here is the link...

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago