c011a3d3199ad3e0380be4107d469ba5e15fd20c kate Mon Apr 17 15:02:15 2017 -0700 Make 'describe table schema' button work on table browser. This makes it work for all of the big* types. refs #18736 diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c index 91d8440..0bd55a9 100644 --- src/hg/hgTables/schema.c +++ src/hg/hgTables/schema.c @@ -613,31 +613,31 @@ { struct asObject *asObj = pgSnpAsObj(); showSchemaWithAsObj(db, table, ct, asObj); asObjectFree(&asObj); } else errAbort("Unrecognized customTrack type %s", type); } static void showSchemaHub(char *db, char *table) /* Show schema on a hub track. */ { struct trackDb *tdb = hashMustFindVal(fullTableToTdbHash, table); hubConnectAddDescription(db, tdb); char *type = cloneFirstWord(tdb->type); -if (sameString(type, "bigBed")) +if (tdbIsBigBed(tdb)) showSchemaBigBed(table, tdb); else if (sameString(type, "longTabix")) showSchemaLongTabix(table, tdb); else if (sameString(type, "bam")) showSchemaBam(table, tdb); else if (sameString(type, "vcfTabix")) showSchemaVcf(table, tdb, TRUE); else { hPrintf("Binary file of type %s stored at %s
\n", type, trackDbSetting(tdb, "bigDataUrl")); printTrackHtml(tdb); } }