Question: 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

in Java please 1. Random DNA sequences The DNA is made of

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 frequency

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!