Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the data processing methods, such as codon() and codon2aa() in a separate Java class, and the input and output in another class. (include comments)

Write the data processing methods, such as codon() and codon2aa() in a separate Java class, and the input and output in another class. (include comments) 

1. Develop a Java program to read in a piece of DNA sequence from a FASTA format sequence file (alternatively you can use the getRandomSeq(long) method of the RandomSeq class to generate a piece of DNA sequence),

and then print out all the codons in three forward reading frames. Design a method called codon() that can be used to find all the codons from three reading frames. The method will take in an argument, the reading frame (1, 2, or 3), and return an array or ArrayList with all the codons.

All the codons should have three nucleotides, please discard the last one if it does not have three nucleotides. Below is a sample output of the program:

Enter the file name contains the DNA sequence:

DNAseq.seq

The DNA sequence is:

TCAGCGAGATGGGAAAGATCACCTTCTTCGAGGACCGAGGCTTCCAGGGC

Reading frame #1 codons are:

TCA GCG AGA TGG GAA AGA TCA CCT TCT TCG AGG ACC GAG GCT TCC AGG

Reading frame #2 codons are:

CAG CGA GAT GGG AAA GAT CAC CTT CTT CGA GGA CCG AGG CTT CCA GGG

Reading frame #3 codons are:

AGC GAG ATG GGA AAG ATC ACC TTC TTC GAG GAC CGA GGC TTC CAG GGC


2. Add another method called codon2aa() to modify the previous program (question #1) to print the corresponding amino acid beneath each codon. Use a single letter representation of the amino acid and a * for the stopping codon. See below for a sample output.

Enter the file name of DNA sequence:

DNAseq.seq

The DNA sequence is:

TCAGCGAGATGGGAAAGATCACCTTCTTCGAGGACCGAGGCTTCCAGGGC

Reading frame #1 codons and amino acids are:

TCA GCG AGA TGG GAA AGA TCA CCT TCT TCG AGG ACC GAG GCT TCC AGG

S   A   R   W   E   R   S   P   S   S   R   T   E   A   S   R

Reading frame #2 codons and amino acids are:

CAG CGA GAT GGG AAA GAT CAC CTT CTT CGA GGA CCG AGG CTT CCA GGG

Q   R   D   G   K   D   H   L   L   R   G   P   R   L   P   G

Reading frame #3 codons and amino acids are:

AGC GAG ATG GGA AAG ATC ACC TTC TTC GAG GAC CGA GGC TTC CAG GGC

S   E   M   G   K   I   T   F   F   E   D   R   G   F   Q   G

Step by Step Solution

3.55 Rating (173 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Organic Chemistry A Short Course

Authors: Harold Hart, Christopher M. Hadad, Leslie E. Craine, David J. Hart

13th edition

1111425566, 978-1111425562

More Books

Students also viewed these Computer Engineering questions

Question

Describe the components of identity.

Answered: 1 week ago

Question

What are Apple's Information Systems; Network, Data access?

Answered: 1 week ago