7338fb10bb7ffdc0a75445a36cd128e6be593d36
braney
Mon Feb 26 10:51:47 2024 -0800
fix a bunch of places that were printing out hub_#_db instead of just db
diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c
index 68567b5..f0467fd 100644
--- src/hg/hgTables/bigBed.c
+++ src/hg/hgTables/bigBed.c
@@ -521,31 +521,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 = bigBedFileOpenAlias(fileName, chromAliasFindAliases);
struct bbiChromInfo *chromList = bbiChromList(bbi);
struct lm *lm = lmInit(0);
struct bigBedInterval *ivList = getNElements(bbi, chromList, lm, 10);
time_t timep = bbiUpdateTime(bbi);
/* Get description of columns, making it up from BED records if need be. */
struct asObject *as = bigBedAsOrDefault(bbi);
-hPrintf("Database: %s", database);
+hPrintf("Database: %s", trackHubSkipHubName(database));
hPrintf(" Primary Table: %s ", table);
printf("Data last updated: %s
\n", firstWordInLine(sqlUnixTimeToDate(&timep, FALSE)));
printDownloadLink("Big Bed", fileName);
if (bbi->version >= 2)
{
hPrintf("
Item Count: ");
printLongWithCommas(stdout, bigBedItemCount(bbi));
}
printTypeHelpDesc(tdb->type);
hPrintf("
\n");
hPrintf("Format description: %s
", as->comment);
/* Put up table that describes fields. */