9c5826b0163085be9b62f68597f6a8f710568101 braney Thu Jul 18 09:25:45 2024 -0700 short cut for bigWigs not being positional. This was causing a problem on track hubs. diff --git src/hg/lib/featureBits.c src/hg/lib/featureBits.c index 670ef64..b3be45c 100644 --- src/hg/lib/featureBits.c +++ src/hg/lib/featureBits.c @@ -123,30 +123,33 @@ { return fetchQualifiers("utr3", qualifier, extra, retSize); } static boolean utr5Qualifier(char *qualifier, char *extra, int *retSize) /* Return TRUE if it's a utr5 qualifier. */ { return fetchQualifiers("utr5", qualifier, extra, retSize); } boolean fbUnderstandTrack(char *db, struct trackDb *tdb) /* Return TRUE if can turn track into a set of ranges or bits. */ { +if (startsWith("bigWig", tdb->type)) + return FALSE; + if ((tdb != NULL) && startsWith("big", tdb->type) && !startsWith("bigWig", tdb->type)) return TRUE; struct hTableInfo *hti = hFindTableInfo(db, NULL, tdb->table); if (hti == NULL) return FALSE; else return hti->isPos; } static void fbAddFeature(char *db, struct featureBits **pList, char *name, char *chrom, int start, int size, char strand, int winStart, int winEnd) /* Add new feature to head of list. Name can be NULL. */