INNER CODE UNIT · C

arrlen

dpryan79/MethylDackel · common.c:231

    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++)
    {
        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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…