d9900fbca577fe16085358bdddf7e49b872bd2d5 braney Mon Feb 23 15:43:40 2015 -0800 take out check to find zero sized blocks in bed12's. diff --git src/lib/basicBed.c src/lib/basicBed.c index 93d8280..a4b98d1 100644 --- src/lib/basicBed.c +++ src/lib/basicBed.c @@ -1471,36 +1471,38 @@ if (bedFieldCount > 10) { if (isCt) { AllocArray(bed->blockSizes,bed->blockCount+1); // having +1 allows us to detect incorrect size count = lineFileAllIntsArray(lf, row, 10, bed->blockSizes, bed->blockCount+1, TRUE, 4, "integer", TRUE); blockSizes = bed->blockSizes; } else { count = lineFileAllIntsArray(lf, row, 10, tempBlockSizes, tempArraySize, TRUE, 4, "integer", TRUE); blockSizes = tempBlockSizes; } if (count != bed->blockCount) lineFileAbort(lf, "Expecting %d elements in blockSizes list, found at least %d", bed->blockCount, count); +#ifdef NOTNOW int i; for (i=0; i < bed->blockCount; i++) { if (!(blockSizes[i] > 0)) lineFileAbort(lf, "BED blockSizes must be greater than 0, blockSize[%d] = %d", i, blockSizes[i]); } +#endif } if (bedFieldCount > 11) { int i; if (isCt) { AllocArray(bed->chromStarts,bed->blockCount+1); // having +1 allows us to detect incorrect size count = lineFileAllIntsArray(lf, row, 11, bed->chromStarts, bed->blockCount+1, TRUE, 4, "integer", TRUE); chromStarts = bed->chromStarts; } else { count = lineFileAllIntsArray(lf, row, 11, tempChromStarts, tempArraySize, TRUE, 4, "integer", TRUE); chromStarts = tempChromStarts; }