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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:00, Jadaflournoy5
Check my work the microprocessor is a(n) circuit, which is designed to process data based on a set of instructions. most desktop and laptop devices contain a microprocessor based on the standard. most tablets and smartphones contain processors based on technology. a microprocessor's circuitry is designed to perform a limited number of tasks contained in its set. during processing, an instruction is loaded into the processor's unit. data is loaded into registers in the processor's where arithmetic and logic operations are performed. microprocessor performance can be measured by its speed. other factors affecting overall processing performance include word size, cache size, and instruction set complexity. most digital devices contain only one microprocessor chip, but today's multi- processors contain circuitry that supports parallel processing. computers contain various kinds of memory. random memory is a special holding area for data, program instructions, and the system. it stores data on a temporary basis until the processor makes a data request. ram is different from disk storage because it is , which means that it can hold data only when the computer power is turned on. computers also contain read- memory, which is a type of non-volatile memory that provides a set of "hard-wired" instructions, called the loader, that a computer uses to boot up.
Answers: 3
image
Computers and Technology, 22.06.2019 20:00, ayoismeisalex
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, azainababbas
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
You know the right answer?
Write a function called list_codons which takes a single argument called orf (expected to be a strin...

Questions in other subjects: