3810604d5c77948f1eb2d1dc7605aa4fdda5f3e2 kate Mon May 1 16:56:54 2017 -0700 Use .as comments to label item name and name2. Also add name2 to boxplot. refs #18736 diff --git src/hg/inc/barChartBed.h src/hg/inc/barChartBed.h index a29b6c9..407a3d5 100644 --- src/hg/inc/barChartBed.h +++ src/hg/inc/barChartBed.h @@ -73,30 +73,34 @@ /* Print out barChartBed. Separate fields with sep. Follow last field with lastSep. */ #define barChartBedTabOut(el,f) barChartBedOutput(el,f,'\t','\n'); /* 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 + 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(). */ float barChartTotalValue(struct barChartBed *bed);