Is this a homework? Because there are a huge ways to get a protein sequence from a dna one. Furthermore this type of tasks can be done much more easy with bioperl or biopython packages. If you're still interested in writing this kind of script in bash for learning or whatever, you should start writing step by step, and understanding each line code, like:
1) Read rna sequence 3 nt by 3nt 2) Look the 3bp codon in a table/hash/file where the codon -- aa conversion is specified. 3) Write output protein sequence.
Is this a homework? Because there are a huge ways to get a protein sequence from a dna one. Furthermore this type of tasks can be done much more easy with
bioperl
orbiopython
packages. If you're still interested in writing this kind of script in bash for learning or whatever, you should start writing step by step, and understanding each line code, like:1) Read rna sequence 3 nt by 3nt
2) Look the 3bp codon in a table/hash/file where the codon -- aa conversion is specified.
3) Write output protein sequence.
Yes, this is a homework. I'm learning to program in different languages and one of the exercises is this.
This is how you ask for help on homework! Other people who just post the question and expect us to do the work for them, take note.