cd8540f3042b909432e4257588c13d9249e583f2 angie Wed Apr 1 16:49:33 2015 -0700 hgTables fixes to support bigBed and VCF tracks that have no mysql table, only a bigDataUrl setting that may point to a local file. refs #15059 diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index fcb21dd..32981e4 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -350,31 +350,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("Database: %s", database); hPrintf("    Primary Table: %s ", table); -if (!(isHubTrack(table) || isCustomTrack(table))) +if (sqlTableExists(conn, table)) { char *date = firstWordInLine(sqlTableUpdate(conn, table)); if (date != NULL) printf("  Data last updated: %s
\n", date); } hPrintf("Big Bed File: %s", fileName); if (bbi->version >= 2) { hPrintf("
Item Count: "); printLongWithCommas(stdout, bigBedItemCount(bbi)); } hPrintf("
\n"); hPrintf("Format description: %s
", as->comment); /* Put up table that describes fields. */