5847cd8496ad3bc5783f9f6eb03f97c7ff3699a1 braney Tue Jul 24 15:30:33 2018 -0700 fix problems with filtering on beds with less than 9 fields, and work around brain damaged cart variables that different based on the storage class of a bigBed field ... argh! diff --git src/hg/inc/hui.h src/hg/inc/hui.h index 7b76415..247b5fa 100644 --- src/hg/inc/hui.h +++ src/hg/inc/hui.h @@ -1069,30 +1069,39 @@ #define SIGNAL_FILTER "signalFilter" #define PVALUE_FILTER "pValueFilter" #define QVALUE_FILTER "qValueFilter" #define _NO "No" #define _LIMITS "Limits" #define _MIN "Min" #define _MAX "Max" #define _BY_RANGE "ByRange" #define SCORE_MIN "scoreMin" #define GRAY_LEVEL_SCORE_MIN SCORE_MIN #define MIN_GRAY_LEVEL "minGrayLevel" boolean colonPairToDoubles(char * colonPair,double *first,double *second); // Non-destructive. Only sets values if found. No colon: value goes to *first +boolean colonPairToInts(char * colonPair,int *first,int *second); +// Non-destructive. Only sets values if found. No colon: value goes to *first + +void getScoreIntRangeFromCart(struct cart *cart, struct trackDb *tdb, boolean parentLevel, + char *scoreName, int *limitMin, int *limitMax,int *min,int *max); +// gets an integer score range from the cart, but the limits from trackDb +// for any of the pointers provided, will return a value found, if found, else it's contents +// are undisturbed (use NO_VALUE to recognize unavaliable values) +// void getScoreFloatRangeFromCart(struct cart *cart, struct trackDb *tdb, boolean parentLevel, char *scoreName, double *limitMin,double *limitMax,double*min,double*max); // gets an double score range from the cart, but the limits from trackDb // for any of the pointers provided, will return a value found, if found, else it's contents // are undisturbed (use NO_VALUE to recognize unavaliable values) void filterButtons(char *filterTypeVar, char *filterTypeVal, boolean none); /* Put up some filter buttons. */ void radioButton(char *var, char *val, char *ourVal); /* Print one radio button */ void oneMrnaFilterUi(struct controlGrid *cg, struct trackDb *tdb, char *text, char *var, char *suffix, struct cart *cart); /* Print out user interface for one type of mrna filter. */