6c19a52350eb826034160d10f751358437bedd93 angie Wed Aug 2 12:04:54 2017 -0700 Root names of split table sets, e.g. intronEst for chr*_intronEst, were falling into the !hTableExists check in maybeGetHti and were mistakenly given hti with root name as table name. Instead of assuming that any 'table' that does not exist as a table is bigWig, check for bigWig similarly to the way we check for other bigFile types and create a more accurate hti. refs #19930 diff --git src/hg/hgTables/hgTables.h src/hg/hgTables/hgTables.h index 7cc9eaf..3f16646 100644 --- src/hg/hgTables/hgTables.h +++ src/hg/hgTables/hgTables.h @@ -738,30 +738,32 @@ /* Return TRUE if table is bedGraph in current database's trackDb. */ char *bigFileNameFromCtOrHub(char *table, struct sqlConnection *conn); /* If table is a custom track or hub track, return the bigDataUrl setting; * otherwise return NULL. Do a freeMem on returned string when done. */ char *bigDataIndexFromCtOrHub(char *table, struct sqlConnection *conn); /* If table is a custom track or hub track, return the bigDataIndex setting; * otherwise return NULL. Do a freeMem on returned string when done. */ char *bigWigFileName(char *table, struct sqlConnection *conn); /* Return file name associated with bigWig. This handles differences whether it's * a custom or built-in track. Do a freeMem on returned string when done. */ #define bigBedFileName(table, conn) bigWigFileName(table, conn) +struct hTableInfo *bigWigToHti(char *table); +/* Get fields of bigWig into hti structure. */ int mathWigOutRegion(struct trackDb *track, char *table, struct sqlConnection *conn, struct region *region, int maxOut, enum wigOutputType wigOutType); /* Write out mathWig for region, doing intersecting and filtering as need be. */ int bigWigOutRegion(char *table, struct sqlConnection *conn, struct region *region, int maxOut, enum wigOutputType wigOutType); /* Write out bigWig for region, doing intersecting and filtering as need be. */ void doSummaryStatsBigWig(struct sqlConnection *conn); /* Put up page showing summary stats for bigWig track. */ struct bed *bigWigIntervalsToBed(struct sqlConnection *conn, char *table, struct region *region,