Question: hi I need 2 scripts. the first is a script that inputs a DNA String and returns reverse_complement DNA String. EXAMPLE for nucleotide A, returns

hi I need 2 scripts. the first is a script that inputs a DNA String and returns reverse_complement DNA String. EXAMPLE for nucleotide A, returns T and for nucleotide T, returns A. And for nucleotide G, returns C and for nucleotide C returns G.hi I need 2 scripts. the first is a script that inputsThe other is a script which converts a DNA sequence to a protein string. Every three nucleotide in the DNA sequence is a protein code. I have included the codon table that can be used in the script to match the amino acid to codons from the list using

amino_acid = dna_codons['ATG']

print(amino_acid) #will print 'M'.

codon_table = { 'ATA':'I', 'ATC':'I', 'ATT':'I', 'ATG':'M', 'ACA':'T', 'ACC':'T', 'ACG':'T', 'ACT':'T', 'AAC':'N', 'AAT':'N', 'AAA':'K', 'AAG':'K', 'AGC':'S', 'AGT':'S', 'AGA':'R', 'AGG':'R', 'CTA':'L', 'CTC':'L', 'CTG':'L', 'CTT':'L', 'CCA':'P', 'CCC':'P', 'CCG':'P', 'CCT':'P', 'CAC':'H', 'CAT':'H', 'CAA':'Q', 'CAG':'Q', 'CGA':'R', 'CGC':'R', 'CGG':'R', 'CGT':'R', 'GTA':'V', 'GTC':'V', 'GTG':'V', 'GTT':'V', 'GCA':'A', 'GCC':'A', 'GCG':'A', 'GCT':'A', 'GAC':'D', 'GAT':'D', 'GAA':'E', 'GAG':'E', 'GGA':'G', 'GGC':'G', 'GGG':'G', 'GGT':'G', 'TCA':'S', 'TCC':'S', 'TCG':'S', 'TCT':'S', 'TTC':'F', 'TTT':'F', 'TTA':'L', 'TTG':'L', 'TAC':'Y', 'TAT':'Y', 'TAA':'-', 'TAG':'-', 'TGC':'C', 'TGT':'C', 'TGA':'-', 'TGG':'W', }a DNA String and returns reverse_complement DNA String. EXAMPLE for nucleotide A,

returns T and for nucleotide T, returns A. And for nucleotide G,

Assignment: Write a function that returns the reverse-complement of a dna string. Input parameter: a DNA string Return: a DNA string, the reverse complement of the input string e.g. with dna = 'TACGTGTC' your function should return 'GACACGTA' Note: both the input and output DNA string are in the 5' to 3' orientation. The input DNA is: TACGTGTC Therefore, the double stranded dna is: 5'-TACGTGTC-3 31-ATGCACAG-5

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!