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
Get step-by-step solutions from verified subject matter experts
