5e88a1196c6be3d47f925d8d31e401ef0a65c1fc braney Fri Nov 10 14:40:51 2017 -0800 add support for bigNarrowPeak in hubs and custom tracks diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index 3fe1ee5..07debc7 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -601,30 +601,31 @@ boolean rTdbTreeCanPack(struct trackDb *tdb); // Trees can pack as all or none, since they can share vis. void tdbSetCartVisibility(struct trackDb *tdb, struct cart *cart, char *vis); // Set visibility in the cart. Handles all the complications necessary for subtracks. // More INLINES which depend on what the definition of "is" is INLINE boolean tdbIsBigBed(struct trackDb *tdb) // Local test to see if something is big bed. Handles hub tracks unlike hIsBigBed. { // KRR TODO: replace with table lookup (same as bigBedFind ?) return startsWithWord("bigBed", tdb->type) || startsWithWord("bigGenePred", tdb->type) || startsWithWord("bigMaf", tdb->type) || startsWithWord("bigPsl", tdb->type) || + startsWithWord("bigNarrowPeak", tdb->type) || startsWithWord("bigBarChart", tdb->type) || startsWithWord("bigChain", tdb->type); } INLINE boolean tdbIsBigWig(struct trackDb *tdb) // Local test to see if something is big bed. Handles hub tracks unlike hIsBigBed. { return startsWithWord("bigWig", tdb->type) || startsWithWord("mathWig", tdb->type); } INLINE boolean tdbIsLongTabix(struct trackDb *tdb) // Return TRUE if tdb corresponds to a long tabix file. { return startsWithWord("longTabix", tdb->type); }