subject

Write a function called list_codons which takes a single argument called orf (expected to be a string representing an ORF sequence). The purpose of this function is to produce a list of codons in the ORF. The function should perform the following tasks:
a. Check if the provided string meets the minimum requirements of an ORF sequence. Specifically, call the possibly_orf function to perform this check. If possibly_orf function returns True, the function should continue to the next step, otherwise the function should return an empty list.
b. Use a for loop with the help of Python's built-in range function to produce a list of codons in the orf. You will first need to create an empty list: codon_list = [] which will then be populated during the execution of the for loop.
c. The function should return the populated codon_list.
You can check if your function works correctly by running the following test cases. Notice the expected output. Your function should perform identically:
In [1] : list_codons ('AGUAGGAUAAGAAGU')
The first codon is not AUG.
Out [1] : []
In [2] : list_codons ('AUGAGGAUAAGAUGA)
The sequence is possibly an ORF.
Out [2] : ['AUG', 'AGG', 'AUA', 'AGA', 'UGA']

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
You know the right answer?
Write a function called list_codons which takes a single argument called orf (expected to be a strin...
Questions
question
Mathematics, 25.04.2020 18:30
question
Mathematics, 25.04.2020 18:31
question
Mathematics, 25.04.2020 18:31
Questions on the website: 13722360