INNER CODE UNIT · C
index
dpryan79/MethylDackel · common.c:225
int index = start/8;
int offset = start%8;
//int startindex = start/8; //debug
//int startoffset = start%8; //debug
//debug
int arrlen = 0; //variable to store the length of the array used for the data (this is not the same as the chromosome length, as each value is one bit and this is an array of characters, i.e. bytes)
if(chromFound)
{
arrlen = config->chromLengths[chrom]/8; //array length is chromosome length over 8 (number of bits to number of bytes)
if(config->chromLengths[chrom]%8 > 0) //if there is a remainder that didn't divide evenly
{
arrlen++; //add an extra byte to store it
}
}
for(i = 0; i<end-start; i++)
{