Question: Please answer this question using R studio base. Every amino acid in a protein is encoded by three nucleotides. ## Execute the following two lines

Please answer this question using R studio base.

Every amino acid in a protein is encoded by three nucleotides. ## Execute the following two lines to get a list of all codons and corresponding amino acids codons = c('UUU','UUC','UUA','UUG','UCU','UCC','UCA','UCG','UAU','UAC','UAA','UAG','UGU','UGC','UGA','UGG','CUU','CUC','CUA','CUG','CCU','CCC','CCA','CCG','CAU','CAC','CAA','CAG','CGU','CGC','CGA','CGG','AUU','AUC','AUA','AUG','ACU','ACC','ACA','ACG','AAU','AAC','AAA','AAG','AGU','AGC','AGA','AGG','GUU','GUC','GUA','GUG','GCU','GCC','GCA','GCG','GAU','GAC','GAA','GAG','GGU','GGC','GGA','GGG') amino_acids = c('F','F','L','L','S','S','S','S','Y','Y','*','*','C','C','*','W','L','L','L','L','P','P','P','P','H','H','Q','Q','R','R','R','R','I','I','I','M','T','T','T','T','N','N','K','K','S','S','R','R','V','V','V','V','A','A','A','A','D','D','E','E','G','G','G','G' )

## Write function that will take an RNA sequence as input ## Output should be the number of possible amino acid variants that one can generate by making only a single nucleotide change. ## Please note that synonymous changes should not be counted. ## For example, given sequence "UUG", we can make the following alternative sequences with only a single nucleotide change. ## "AUG, CUG, GUG, UAG, UCG, UGG, UUA, UUC, UUU" ## Altogether these variants encode the following amino acid sequences:

## "M, L, V, * , S, W, *, F, F" -> Hence there are 7 alternatives. ## Note that you function should be able to deal with sequences of any length that is a multiple of three.

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!