Question
Java FX Question Requirements: Write a program that will take in a file from a user. For sake of simplicity, you may assume the type
Java FX Question
Requirements:
Write a program that will take in a file from a user. For sake of simplicity, you may assume the type of file given is of the correct format and extension. Your program should then read in the file. A DNA sequence will start with a header which begins with a >, you should print this out first in either your file or in the terminal. You should then read in the sequence and replace any values that are not A, C, T, or G with an A. Once you have a sequence read in, you should then use the options provided by the user to generate the output data. Your output should be formatted as follows:
>HEADER
Output 1 (coding region, mRNA, or nucleotide sequence)
Output 2
...
This format should be used for both the file output and the command line output.Your program should repeat this format for each strand of DNA in the .fasta file. When the program has completed reading all of the DNA and produced all the output data it should shut down.
Notes:
-Please use DNA codon table here: https://en.wikipedia.org/wiki/DNA_codon_table
-To convert to mRNA, simply take a protein coding region and make the following substitutions:
A becomes U (for Uracil)
T becomes A
C becomes G
G becomes C
-Protein coding regions will always start with ATG and will end with TAA, TGA, or TAG. You can further assume that the length of the protein coding region will always be evenly divisible by 3.
-our main class (which will hold your JavaFX GUI) should be named DNAApp.java
DNA file for program to take in:
>ANIS1000.x1 CHROMAT_FILE: ANIS1000.x1 PHD_FILE: ANIS1000.x1.phd.1 CHEM:
term DYE: ET TIME: Wed Sep 1 22:12:20 2004
AACGACGGCGTGCATGCTTGACGXXXXXXXXXXXXXXXXXXXXXXXXXXA
CTACAAATCAATGAGCCACCCACTTCAATCGTCAGGAGCATCCTCAGGAA
AGTTTGTCGTCGGCGCAATCAGCTAGTACTGTTTCTTCAAGAAATACGAA
AAAATCGTCTAAAGTTGCCGCTTTATTAGGTGGCCTTCTCGATTCTCGTT
CGCTACCTTTTGAAAATGATGCATTGAAAAAGGAAATTGCTTTGTACAAG
TCAACTCCTTTAATTTCAAAAAATGATTTAGACTCCTTTGATTTGCTTAA
TTGGTGGAAAGTGCGCCAAGACCAATTTCCTCTTCTTTCTGTGGTGGCCC
GTAAAGTGTTAGGTATTCCTGCCACGTCGGCCTGTTGCGAAAGAATTTTT
AGCAAGGGTGGTAATATTGTGTCTTCTTTGCGTGCCAACATTTCCCCACA
TAACGTGGATATGACTATCTTCATTGCCTTTAATACTCAAGGTCAAGGAA
TACCTAATTCTATTCCGACTGGGCCTGGGGATTTCATATTTTTTTAAAGT
GTGTATGGCTTTGAATACTTGGATAAAATCCAATTTGAATTTACTTTCCT
TAAATACAAGAAAGAATGCCAAGAAA
Please comment and let me know if you need any aditional information Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started