Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN python: please follow all the requirements. make it it simple and clear. = EVC-2020SPI-COMSC-020-202 > Assignments > Dictionaries Spring 2020 Intersession Dictionaries Login Home
IN python: please follow all the requirements. make it it simple and clear.
= EVC-2020SPI-COMSC-020-202 > Assignments > Dictionaries Spring 2020 Intersession Dictionaries Login Home Assignments Due Tuesday by 11:59pm Points 25 Submitting a file upload Dashboard Files Courses Read everything before doing anything! Syllabus Zoom Background Calendar EA DNA is made up of sequences of nucleotides. There are four nucleotides: Adenine, Cytosine, Guanine, and Thymine, represented by the letters A, C, G, and T. Inbox Every set of three nucleotides produces one of twenty amino acids. For example, Cytosine, Thymine, and Guanine (CTG) produce Leucine. Note that there are 64 combinations of three nucleotides, and only twenty amino acids, so that means that a single amino acid can be produced in many different ways. [ The following tables, taken from the Biolnformatics tutorial e are Copyright 1999 by Boris Steipe, University of Munich. The table at the left shows the names of the amino acids and their abbreviations. The table at the right shows the abbreviations of the amino acids and the nucleotide sequences which produce them. TTT:Phe TCT:Ser TGT:Cys TAT:Tyr TTC:Phe TCC:Ser TGC:Cys TAC:Tyr TTG:Leu TCG:Ser TGG:Trp TAG:*** TTA:Leu | TCA-Ser TGA:* |TAA:*** Login Dashboard Courses CTT:Leu CCT:Pro CGT:Arg CAT:His CTC:Leu CCC:Pro CC:Arg CAC:His CTG:Leu CCG:Pro CGG:Arg CAG:Gin CTA:Leu CCA:Pro CGA:Arg CAA:Gin Calendar BL Inbox GTT:Val GCT:Ala GGT:Gly GAT:Asp GTC:Val GCC:Ala GGC:Gly GAC:Asp GTG:Val GCG:Ala GGG:Gly GAG:Glu GTA:Val GCA:Ala GGA:Gly GAA:Glu [ ATT:lle |ACT:Thr AGT:Ser AAT:Asn ATC:lle ACC:Thr AGC:Ser AAC:Asn LATCMot Locathracalec ATT:lle |ACT:Thr AGT:Ser AAT:Asn ATC:lle ACC:Thr AGC:Ser AAC:Asn ATG:Met ACG:Thr AGG:Arg AAG:Lys ATA:lle ACA:Thr AGA:Arg AAA:Lys Login You will write a program that repeatedly accepts as input a string of ACGT triples and produces a list of the triples and the corresponding amino acids, one set per line. Dashboard The program will continue to accept input until the user just presses ENTER without entering any DNA codes. Courses Calendar Here is a sample run of the program. Note that some sequences, such as TAG, do not produce an amino acid. They are listed as *** for their three-letter abbreviation. Do not presume that there will never be more than 4 sequences. Somebody could enter a string with 40 three-letter sequences, or 50, or 80, and your program would have to process that string correctly. BL Inbox Enter a nucleotide sequence, or just press ENTER to quit: aaacgatcaccc AAA Lys CGA Arg TCA Sen CCC Pro [ Enter a nucleotide sequence, or just press ENTER to quit: cga tgc CGA Arg TGC Cys Enter a nucleotide sequence, or just press ENTER to quit: cgi tat tca CGI invalid sequence TAT Tyr Enter a nucleotide sequence, or just press ENTER to quit: cgi tat tca CGI invalid sequence TAT Tyr TCA Ser Enter a nucleotide sequence, or just press ENTER to quit: tag cat age ctt Login TAG *** CAT His AGG Arg CTT Leu Dashboard Enter a nucleotide sequence, or just press ENTER to quit: tca cag gtt og Error: You must give complete triples. Courses Enter a nucleotide sequence, or just press ENTER to quit: Calendar Breaking a String into Triples BL Inbox This takes a bit of doing. I suggest you do this: Write a function named clean_sequence() takes a string as its single parameter. It will use a for loop to go through the string one character at a time; if the letter is alphabetic, convert it to upper case and add it on to the end of a result string. The function returns the result string. For example, clean_sequence('aaa, TCG, gaa') will return 'AAATCGGAA' Use a while loop that goes through the cleaned sequence one triple at a time and processes it. [ Program Requirements You must use at least one dictionary to implement this program. This file has the preceding tables without all the punctuation. Just copy and paste it into your Python source code, put
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started