Menu

. In homework03, you are asked to write two methods for a DNA class, codon() and codon2aa(), to parse a piece of DNA sequence into codons of three reading frames, and translate these codons into corre…

Question

Answered step-by-step

. In homework03, you are asked to write two methods for a DNA…

. In homework03, you are asked to write two methods for a DNA class, codon() and codon2aa(), to parse a piece of DNA sequence into codons of three reading frames, and translate these codons into corresponding amino acid sequences. Since this type of conversion is so common in biology, BioJava has a collection of related classes to deal with DNA and protein sequences. Please review the org.java.bio.symbol, and org.biojava.bio.seq packages (mainly the DNATools, RNATools, and the GeneticCodes classes) to develop a Java program to translate a DNA sequence into its corresponding protein sequence. 

 

1) The program should incorporate the functionality of readFastaDNA.java above in Q 1 to read in one or more DNA sequences from a Fasta formatted DNA sequence file (seq.fasta). (2 point) 

 

2) The program should be able to translate three forwarding open reading frames. You can first use the transcribe() method of the GeneticCodes class to transcribe the DNA sequence into an RNA sequence, and then use the translate() method to translate it into a protein sequence. Please note that the translate method only takes a sequence with a length divisible by 3, so you need to adjust the length of the sequence depending on which reading frame is used. You can also choose the toProtein() method in the DNATools class without adjusting the length of the sequence

OR

Leave a Reply

Your email address will not be published. Required fields are marked *