Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in Java please 1. Random DNA sequences The DNA is made of nucleotides, which is composed of one of four nitrogen-containing nucleobases (cytosine [C], guanine
in Java please
1. Random DNA sequences The DNA is made of nucleotides, which is composed of one of four nitrogen-containing nucleobases (cytosine [C], guanine (G), adenine [A] or thymine (T]), a sugar called deoxyribose, and a phosphate group. (a) Write code to print to the console 1,000 randomly generated DNA 3 mers (e.g. ACA, TCG. k-mers are subsequences of length k contained within a biological sequence). where the frequency of A,C,G and T is 25% and is uniformly sampled. (b)Have your code track how often it prints out the 3 mer (AAA) How often would you expect to see this 3mer by chance? Is Javas number close to the number that you would expect? (c) Modify your code so that the frequency of A,C,G and T is p(A) = 0.12 p(C) = 0.38 p(G) = 0.39 p(T) = 0.11 (1) What is the expected frequency now of AAA? Does Java produce AAA at close to the expected frequencyStep 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