cabec1018c6cbcc8ae6a7d65c7dd82758fec024d braney Wed Jul 22 13:24:44 2015 -0700 fix a couple of problems where sql tables were assumed #15756 diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index a8a3eb2..79ba740 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -351,31 +351,31 @@ /* Figure out bigBed file name and open it. Get contents for first chromosome as an example. */ struct sqlConnection *conn = NULL; if (!trackHubDatabase(database)) conn = hAllocConn(database); char *fileName = bigBedFileName(table, conn); struct bbiFile *bbi = bigBedFileOpen(fileName); struct bbiChromInfo *chromList = bbiChromList(bbi); struct lm *lm = lmInit(0); struct bigBedInterval *ivList = getNElements(bbi, chromList, lm, 10); /* Get description of columns, making it up from BED records if need be. */ struct asObject *as = bigBedAsOrDefault(bbi); hPrintf("<B>Database:</B> %s", database); hPrintf(" <B>Primary Table:</B> %s ", table); -if (hTableExists(database, table)) +if (!isHubTrack(table) && hTableExists(database, table)) { char *date = firstWordInLine(sqlTableUpdate(conn, table)); if (date != NULL) printf("  <B>Data last updated: </B>%s<BR>\n", date); } hPrintf("<B>Big Bed File:</B> %s", fileName); if (bbi->version >= 2) { hPrintf("<BR><B>Item Count:</B> "); printLongWithCommas(stdout, bigBedItemCount(bbi)); } hPrintf("<BR>\n"); hPrintf("<B>Format description:</B> %s<BR>", as->comment); /* Put up table that describes fields. */