INNER CODE UNIT · C

arrlen

dpryan79/MethylDackel · common.c:234

        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++)
    {
        unsigned char byte;
        if(chromFound) //was a chrom ID found for chrom_n, or is chrom still -1 (or here 4,294,967,295) i.e. chrom not found
        {
            if(index>=arrlen)
            {
                byte = 0;
                //printf("warning: accessing at index %d offset %d, arrlen is %d!\ni is %d, end-start is %d, end pos should be %d!\nstartindex is %d, startoffset is %d, start is %d, end is %d\nchrom len is %d\n", index, offset, arrlen, i, end-start, (start/8)+((end-start)/8), startindex, startoffset, start, end, config->chromLengths[chrom]);
            }
            else

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…