90aa101ee4f9e47a77b2eac496eca213a787d513 jcasper Mon Jul 22 01:53:32 2019 -0700 Adding table browser support for hic tracks, refs #22316 diff --git src/hg/inc/hicUi.h src/hg/inc/hicUi.h index 10632dc..974a979 100644 --- src/hg/inc/hicUi.h +++ src/hg/inc/hicUi.h @@ -29,30 +29,35 @@ #define HIC_DRAW_COLOR "color" #define HIC_DRAW_BG_COLOR "bgColor" /* Default to drawing red on a white background */ #define HIC_DRAW_COLOR_DEFAULT "#ff0000" #define HIC_DRAW_BG_COLOR_DEFAULT "#ffffff" void hicCfgUi(char *database, struct cart *cart, struct trackDb *tdb, char *track, char *title, boolean boxed); /* Draw the list of track configuration options for Hi-C tracks */ char *hicUiFetchResolution(struct cart *cart, char *track, struct hicMeta *meta); /* Return the current resolution selection, or the default if none * has been selected. */ +int hicUiFetchResolutionAsInt(struct cart *cart, char *track, struct hicMeta *meta, int windowSize); +/* Return the current resolution selection as an integer. If there is no selection, or if "Auto" + * has been selected, return the largest available value that still partitions the window into at + * least 5000 bins. */ + char *hicUiFetchNormalization(struct cart *cart, char *track, struct hicMeta *meta); /* Return the current normalization selection, or the default if none * has been selected. Right now this is a hard-coded set specifically for * .hic files, but in the future this list might be dynamically determined by * the contents and format of the Hi-C file. */ char *hicUiFetchDrawMode(struct cart *cart, char *track); /* Return the current draw mode selection, or the default if none * has been selected. */ char *hicUiFetchDrawColor(struct cart *cart, char *track); /* Retrieve the HTML hex code for the color to draw the * track values in (e.g., #00ffa1) */ char *hicUiFetchBgColor(struct cart *cart, char *track);