70dd30683fe3a9795bb81067da75d34521265577 kate Thu May 4 16:41:16 2017 -0700 Add custom track suport for type barChart. refs #18736 diff --git src/hg/inc/barChartBed.h src/hg/inc/barChartBed.h index 407a3d5..0a7780d 100644 --- src/hg/inc/barChartBed.h +++ src/hg/inc/barChartBed.h @@ -76,30 +76,32 @@ /* Print out barChartBed as a line in a tab-separated file. */ #define barChartBedCommaOut(el,f) barChartBedOutput(el,f,',',','); /* Print out barChartBed as a comma separated list including final comma. */ /* -------------------------------- End autoSql Generated Code -------------------------------- */ #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 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(). */