Hello, I am trying to create a python program that can translate nucleotides (ACTG) into amino acid sequence(three nucleotides = 1 letter amino acid). I created a dictionary with all the nucleotides and associated amino acid letter. Now I am having problem translating by reading from an input file. The goal is to read from a file(input.fasta) and export the translated result into another file(output.fasta).
I attached got error message: "unhashable type". Can you help out a little here? Thx
Objective:
1. Read input file (.fasta format)
2. Translate the input file from (ACGT) to amino acid sequence with "genecode" table
3. Write the translated output into a same format (.fasta) file









Other samples, services and questions:
When you use PaperHelp, you save one valuable — TIME
You can spend it for more important things than paper writing.