6f726d2bcdb4fca993c06cf2181dce97b061702d kate Thu Feb 22 08:59:49 2018 -0800 Add support for custom tracks and hub tracks. refs #17512 diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index 8bd75ba..59d3bb1 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -597,37 +597,38 @@ // Sets the subtrack membership for later retrieval. char *tdbBigFileName(struct sqlConnection *conn, struct trackDb *tdb); // Return file name associated with bigWig. Do a freeMem on returned string when done. 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 ?) +// 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("bigInteract", 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); }