Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The goal of this project is to write a program that will translate DNA sequences

ID: 3684485 • Letter: T

Question

The goal of this project is to write a program that will translate DNA sequences into protein sequences using the 'standard' genetic code. Remember that coding DNA is 'read' as triplet 'codons,' each of which is translated into a specific amino acid. The genetic code is available at: We are going to translate 3-letter DNA codons into 1-letter amino acid codes. For example, ATG gets translated to M, TGG translates to W, etc. As a standard convention, we will translate any "Stop" codons to the code, As an added bonus, we will use the standard FASTA format for input and output FASTA is a common format for biological sequence data. Basically, it divides data into "identifiers" (lines starting with ">") and "sequences," which will be our DNA and amino-acid data. >my_id ATTGA ACCGG GGATC encodes the sequence ATTGAACCGGGGATCTTA, with identifier "my_id". Although your program will have to be able to read sequence data spanning multiple lines, please print your amino-acid sequences on a single line after each identifier. Create an executable program called: -/assignments/PythonChallenge/translateFasta.py The program should take 1 command-line argument: the name of a FASTA-formatted file containing at least 1 coding DNA sequence. The program should print the corresponding FASTA-formatted amino-acid sequences to the screen, including the unaltered identifier lines. But please print the entire amino-acid sequences on one line each.

Explanation / Answer

# Hello World program in Python
myList=[i for i in range(2)]
myList.append('ATG')
myList.append('TGG')
mydata=[j for j in range(2)]
mydata.append('M')
mydata.append('W')
print myList
p=raw_input('Enter 3-letter DNA codon')
print p
k=myList.index('ATG')
print k

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote