21aba8d4cab3ea657db59d4f362c4331158cd86c angie Thu Apr 23 11:51:28 2015 -0700 Apply some band-aids to fix broken filterFields for bigDataUrl-only bigBed tracks. There are still way too many places in hgTables code that use isXyzTable(table, conn) even when tdb is available. I think all those places need to be fixed to pass in tdb if they have it, or NULL if they don't. The type-testers should use tdb if possible, and fall back to using table & conn if tdb is NULL. refs #14379, #15059 diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index df729d2..bfca72e 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -615,20 +615,26 @@ return startsWithWord("bigWig", tdb->type); } INLINE boolean tdbIsBam(struct trackDb *tdb) // Return TRUE if tdb corresponds to a BAM file. { return startsWithWord("bam", tdb->type); } INLINE boolean tdbIsVcf(struct trackDb *tdb) // Return TRUE if tdb corresponds to a VCF file. { return startsWithWord("vcfTabix", tdb->type) || startsWithWord("vcf", tdb->type); } +INLINE boolean tdbIsBedGraph(struct trackDb *tdb) +// Return TRUE if tdb corresponds to a bedGraph track. +{ +return startsWithWord("bedGraph", tdb->type); +} + boolean trackDbSettingBlocksConfiguration(struct trackDb *tdb, boolean onlyAjax); // Configuration dialogs may be explicitly blocked in tracDb settings #endif /* TRACKDB_H */