e2e920776dddac39896fdb4aebae84a12bcb52b1
kate
  Tue May 9 11:06:33 2017 -0700
Add table browwser support for barChart custom tracks. refs #18736

diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c
index 0bd55a9..25e013e 100644
--- src/hg/hgTables/schema.c
+++ src/hg/hgTables/schema.c
@@ -15,30 +15,31 @@
 #include "jksql.h"
 #include "hdb.h"
 #include "web.h"
 #include "trackDb.h"
 #include "joiner.h"
 #include "tableDescriptions.h"
 #include "asParse.h"
 #include "customTrack.h"
 #include "bedCart.h"
 #include "hgMaf.h"
 #include "hgTables.h"
 #include "wikiTrack.h"
 #include "makeItemsItem.h"
 #include "bedDetail.h"
 #include "pgSnp.h"
+#include "barChartBed.h"
 #include "hubConnect.h"
 #include "errCatch.h"
 
 static char *nbForNothing(char *val)
 /* substitute   for empty strings to keep table formating sane */
 {
 char *s = skipLeadingSpaces(val);
 if ((s == NULL) || (s[0] == '\0'))
     return " ";
 else
     return val;
 }
 
 static char *abbreviateInPlace(char *val, int len)
 /* Abbreviate a string to len characters.  */
@@ -603,30 +604,36 @@
     showSchemaWithAsObj(db, table, ct, asObj);
     asObjectFree(&asObj);
     }
 else if (sameWord("bedDetail", type))
     {
     struct asObject *asObj = bedDetailAsObj();
     showSchemaWithAsObj(db, table, ct, asObj);
     asObjectFree(&asObj);
     }
 else if (sameWord("pgSnp", type))
     {
     struct asObject *asObj = pgSnpAsObj();
     showSchemaWithAsObj(db, table, ct, asObj);
     asObjectFree(&asObj);
     }
+else if (sameWord("barChart", type))
+    {
+    struct asObject *asObj = barChartAsObj();
+    showSchemaWithAsObj(db, table, ct, asObj);
+    asObjectFree(&asObj);
+    }
 else
     errAbort("Unrecognized customTrack type %s", type);
 }
 
 static void showSchemaHub(char *db, char *table)
 /* Show schema on a hub track. */
 {
 struct trackDb *tdb = hashMustFindVal(fullTableToTdbHash, table);
 hubConnectAddDescription(db, tdb);
 char *type = cloneFirstWord(tdb->type);
 if (tdbIsBigBed(tdb))
     showSchemaBigBed(table, tdb);
 else if (sameString(type, "longTabix"))
     showSchemaLongTabix(table, tdb);
 else if (sameString(type, "bam"))