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 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
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
Social Studies, 25.10.2021 14:00
question
Mathematics, 25.10.2021 14:00
question
History, 25.10.2021 14:00
question
Mathematics, 25.10.2021 14:00
question
Social Studies, 25.10.2021 14:00
Questions on the website: 13722359