be313e01c1c762665d07df3691b4bbee56771e44 markd Sat Dec 10 11:51:20 2016 -0800 fix problem with creating bigPsl files with more than 10240 blocks diff --git src/lib/basicBed.c src/lib/basicBed.c index 93a599e..b0fca2a 100644 --- src/lib/basicBed.c +++ src/lib/basicBed.c @@ -1631,31 +1631,31 @@ { if (asTypesIsInt(type)) lineFileAllInts(lf, row, i, NULL, !asTypesIsUnsigned(type), asTypesIntSize(type), asTypesIntSizeDescription(type), FALSE); else if (asTypesIsFloating(type)) lineFileNeedDouble(lf, row, i); else if (type == t_string) { if (strlen(row[i]) > 255) lineFileAbort(lf, "expecting length (%llu) of string (%s) not to exceed 255 in field %s", (unsigned long long)strlen(row[i]), row[i], asCol->name); } } else if (asCol->isList) { if (asTypesIsInt(type)) { - count = lineFileAllIntsArray(lf, row, i, NULL, 10240, + count = lineFileAllIntsArray(lf, row, i, NULL, countSeparatedItems(row[i], ','), !asTypesIsUnsigned(type), asTypesIntSize(type), asTypesIntSizeDescription(type), FALSE); if (asCol->fixedSize > 0) { if (asCol->fixedSize != count) lineFileAbort(lf, "expecting %d elements in %s list, found %d", asCol->fixedSize, asCol->name, count); } else { if (!linkHash) lineFileAbort(lf, "linked field %s was not found; it is required for determining listSize of %s" , asCol->linkedSizeName, asCol->name); int listSize = hashIntValDefault(linkHash, asCol->linkedSizeName, -1); if (listSize == -1) lineFileAbort(lf, "linked field %s was not found; it is required for determining listSize of %s" , asCol->linkedSizeName, asCol->name);