you will write code that can manipulate strings in a list for an application in Bioinformatics and document your work on the code. You will design a code that will take a DNA nucleotide sequence that is randomly generated, transcribe it, and predict the amino acid sequence that would be synthesized. In your code, you should initialize your nucleotide sequence such that the RNA would begin with the start codon. The code will keep adding on to its sequence until a stop codon is generated. To easily associate the codons to amino acids, you will need to learn how to define and use dictionaries. Dictionaries are a special type of list that can use different data types for indices instead of being restricted to integers like regular lists. This would allow you to call the amino acid (the element of the list) using its codon (the index value). You should also keep track of how long the amino acid sequences are in order to calculate the average number of amino acids in the generated sequences. Your code should print the original DNA sequence, the RNA sequence, the amino acid sequence (printed in the format explained in the introduction), and the average number of amino acids in a randomly generated sequence. You can use the random.randint() method from the random package, print(), sum(), max(), min(), len(), and the .append() method. No other function/method should be used.
you will write code that can manipulate strings in a list for an
application in Bioinformatics and document your work on the code.
You will design a code that will take a DNA nucleotide sequence that is randomly
generated, transcribe it, and predict the amino acid sequence that would be
synthesized. In your code, you should initialize your nucleotide sequence such
that the RNA would begin with the start codon. The code will keep adding on to
its sequence until a stop codon is generated.
To easily associate the codons to amino acids, you will need to learn how to
define and use dictionaries. Dictionaries are a special type of list that can use
different data types for indices instead of being restricted to integers like regular
lists. This would allow you to call the amino acid (the element of the list) using its
codon (the index value).
You should also keep track of how long the amino acid sequences are in order to
calculate the average number of amino acids in the generated sequences. Your
code should print the original DNA sequence, the RNA sequence, the amino acid
sequence (printed in the format explained in the introduction), and the average
number of amino acids in a randomly generated sequence.
You can use the random.randint() method from the random package, print(),
sum(), max(), min(), len(), and the .append() method. No other function/method
should be used.
Step by step
Solved in 4 steps with 13 images