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("Database: %s", db);
+printf("
The data for this track is provided by a file in "
+ ""
+ "BigWig format.");
+hPrintf("
Data URL: %s", trackDbSetting(tdb, "bigDataUrl"));
+printTrackHtml(tdb);
+}