15746316e92290a4aee220a757cb35293176d6e8 max Tue Feb 7 05:29:10 2023 -0800 adding file download links directly to the table browser "schema / data format" button, refs #30491 diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index 3706c78..4f1dfb4 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -432,36 +432,39 @@ 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("    Primary Table: %s ", table); printf("Data last updated: %s
\n", firstWordInLine(sqlUnixTimeToDate(&timep, FALSE))); -hPrintf("Big Bed File: %s", fileName); + +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. */ hTableStart(); hPrintf("field"); if (ivList != NULL) hPrintf("example"); hPrintf("description "); puts("\n"); struct asColumn *col; int colCount = 0; char *row[bbi->fieldCount]; char startBuf[16], endBuf[16]; if (ivList != NULL)