Question: Using R program: (a) Write a function to create a contingency table of adjacent k-tuples in a string of characters from the set A,C,G,T. For

Using R program:

(a) Write a function to create a contingency table of adjacent k-tuples in a string of characters from the set A,C,G,T. For example, with k=2 and with the string CAGACAAAAC, you would want to produce the following table (excluding the zero components):

AA AC CA AG GA

3 2 2 1 1

(b) To check your function, run it on a simulated string of 10,000 characters, drawn uniformly and independently from the set A,C,G,T .

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!