Hello to all,
I need help initializing a 4-D array that will hold all instances from [0,0,0,0] to [4,4,4,4] (only using 1-4). I need it for a comparison chart. What I am trying to do is scan a 5 million character string for each particular 4-mer that occurs and keep count. Any help would be great. Below is the code I have so far.
Sorry, my 4-D array should hold (1,1,1,1) to (4,4,4,4).Code:char t1, t2, t3, t4 ;
int index ;
int tupleCount[4][4][4][4] ;
for( index = 0 ; index < strlen(seqData) - 3 ; ++index )
{
t1 = seqData[index] ;
t2 = seqData[index + 1] ;
t3 = seqData[index + 2] ;
t4 = seqData[index + 3] ;
// count the different 4-mers
}
