All one question ..
14]. def translation(seq): # Given a DNA sequence in string object, this function will return a string of protein # sequence, using the following strategy: get the first 3 nucleotides as the first codon # and the get the next 3 nucleotides as the second codon. Keep going until you get the # the last 3 nucleotides as the last codon. Make sure that you are clear any two # adjacent codons do not have any overlapped nucleotide. You need to design # dictionary that has codon (key) and amino acid (value) association to get protein # sequence. genetic_code- return protein-seq # a string object that represents the protein sequence for the given DNA sequence (4) Homopolymer Detection Start 30 50 End 40 57 Length 10 Homopolymer (3) You might notice that all 5 functions, except the detect enzyme), take only one argument seq, that is the sequence bases you obtained for each sequence in a given FASTA file. The function detect enzyme) requires two arguments: seq and enzyme dict. Obviously, you need to create enzyme_dict first and then call the function. 14]. def translation(seq): # Given a DNA sequence in string object, this function will return a string of protein # sequence, using the following strategy: get the first 3 nucleotides as the first codon # and the get the next 3 nucleotides as the second codon. Keep going until you get the # the last 3 nucleotides as the last codon. Make sure that you are clear any two # adjacent codons do not have any overlapped nucleotide. You need to design # dictionary that has codon (key) and amino acid (value) association to get protein # sequence. genetic_code- return protein-seq # a string object that represents the protein sequence for the given DNA sequence (4) Homopolymer Detection Start 30 50 End 40 57 Length 10 Homopolymer (3) You might notice that all 5 functions, except the detect enzyme), take only one argument seq, that is the sequence bases you obtained for each sequence in a given FASTA file. The function detect enzyme) requires two arguments: seq and enzyme dict. Obviously, you need to create enzyme_dict first and then call the function