6dcef0d057b21be3cb1cbe699998764883543c84
kate
  Thu Apr 6 16:46:22 2017 -0700
First cut bigBarChart track type for hubs. Basic function on hgTracks, hgTrackUi, and hgc.  Lacks boxplot on details page, custom track support, extra fields

diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h
index bf0e452..0a925fb 100644
--- src/hg/inc/trackDb.h
+++ src/hg/inc/trackDb.h
@@ -596,31 +596,37 @@
 // 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.
 {
-return startsWithWord("bigBed", tdb->type) || startsWithWord("bigGenePred", tdb->type) || startsWithWord("bigMaf", tdb->type) || startsWithWord("bigPsl", tdb->type) || startsWithWord("bigChain", tdb->type);
+// 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("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);
 }
 
 INLINE boolean tdbIsLongTabix(struct trackDb *tdb)
 // Return TRUE if tdb corresponds to a long tabix file.
 {
 return startsWithWord("longTabix", tdb->type);
 }
 
 INLINE boolean tdbIsBam(struct trackDb *tdb)