371fc634183b94991d7c546a9043caab8c84222f kent Tue Feb 1 15:13:38 2011 -0800 Making big bed all field output work in hubs. diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index bc0ec09..738f68d 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -6,34 +6,47 @@ #include "dystring.h" #include "localmem.h" #include "jksql.h" #include "cheapcgi.h" #include "cart.h" #include "web.h" #include "bed.h" #include "hdb.h" #include "trackDb.h" #include "obscure.h" #include "hmmstats.h" #include "correlate.h" #include "asParse.h" #include "bbiFile.h" #include "bigBed.h" +#include "hubConnect.h" #include "hgTables.h" static char const rcsid[] = "$Id: bigBed.c,v 1.11 2010/05/21 23:45:38 braney Exp $"; +boolean isBigBed(char *database, char *table, struct trackDb *parent, + struct customTrack *(*ctLookupName)(char *table)) +/* Local test to see if something is big bed. Handles hub tracks unlike hIsBigBed. */ +{ +if (isHubTrack(table)) + { + struct trackDb *tdb = hashMustFindVal(fullTrackAndSubtrackHash, table); + return startsWithWord("bigBed", tdb->type); + } +else + return hIsBigBed(database, table, parent, ctLookupName); +} char *bigBedFileName(char *table, struct sqlConnection *conn) /* Return file name associated with bigBed. This handles differences whether it's * a custom or built-in track. Do a freeMem on returned string when done. */ { /* Implementation is same as bigWig. */ return bigWigFileName(table, conn); } struct hash *asColumnHash(struct asObject *as) /* Return a hash full of the object's columns, keyed by colum name */ { struct hash *hash = hashNew(6); struct asColumn *col; for (col = as->columnList; col != NULL; col = col->next)