904c1c8e951519488cf06099bfab3feb81abb3db
ceisenhart
  Wed Jul 5 14:45:07 2017 -0700
Fixing the table browser bug with bigWig files without tables, refs #19701

diff --git src/hg/hgTables/bigWig.c src/hg/hgTables/bigWig.c
index baa455c..910ef75 100644
--- src/hg/hgTables/bigWig.c
+++ src/hg/hgTables/bigWig.c
@@ -413,16 +413,24 @@
 struct dataVector *bigWigDataVector(char *table,
 	struct sqlConnection *conn, struct region *region)
 /* Read in bigWig as dataVector and return it.  Filtering, subtrack merge
  * and intersection are handled. */
 {
 if (anySubtrackMerge(database, table))
     return mergedWigDataVector(table, conn, region);
 else
     {
     struct dataVector *dv = dataVectorNew(region->chrom, region->end - region->start);
     bigWigFillDataVector(table, region, conn, dv);
     return dv;
     }
 }
 
-
+void showSchemaBigWigNoTable(char *db, char *table, struct trackDb *tdb)
+{
+hPrintf("<B>Database:</B> %s", db);
+printf("<BR>The data for this track is provided by a file in "
+       "<A HREF=\"/goldenPath/help/bigWig.html\" TARGET=_BLANK>"
+       "BigWig</A> format.");
+hPrintf("<BR><B>Data URL:</B>  %s", trackDbSetting(tdb, "bigDataUrl"));
+printTrackHtml(tdb);
+}