e2e920776dddac39896fdb4aebae84a12bcb52b1 kate Tue May 9 11:06:33 2017 -0700 Add table browwser support for barChart custom tracks. refs #18736 diff --git src/hg/inc/barChartBed.h src/hg/inc/barChartBed.h index 0a7780d..b99dcc0 100644 --- src/hg/inc/barChartBed.h +++ src/hg/inc/barChartBed.h @@ -82,30 +82,33 @@ #include "basicBed.h" #define BARCHART_OFFSET_COLUMN "_dataOffset" #define BARCHART_LEN_COLUMN "_dataLen" // indexes in .as file for standard barChartBed. Use to find comparable fields in custom .as's #define BARCHART_NAME_COLUMN_IX 3 #define BARCHART_NAME2_COLUMN_IX 6 #define BARCHART_EXPCOUNT_COLUMN_IX 7 #define BARCHART_EXPSCORES_COLUMN_IX 8 void barChartBedCreateTable(struct sqlConnection *conn, char *table); /* Create barChart format table of given name. */ +struct asObject *barChartAsObj(); +/* Return asObject describing fields of barChart database table (includes bin) */ + struct bed *barChartSimpleBedLoad(char **row); /* Load a bed from row containing barChart bed fields. * This is reuses autoSql barChartBedLoad, but with a full-size bed. Dispose of this with bedFree() */ struct barChartBed *barChartBedLoadOptionalOffsets(char **row, boolean hasOffsets); /* TODO: remove this -- offsets field will be required (though may be 0) */ /* Load a barChartBed from row fetched with select * from barChartBed * from database or file. Also supports schema lacking file offet and length for details. . Dispose of this with barChartBedFree(). */ float barChartTotalValue(struct barChartBed *bed); /* Return total of all category values */ float barChartMaxValue(struct barChartBed *bed, int *categIdRet);