7b25ffaf74c9fdba348090b37245c6b44131c72f
max
Wed Aug 9 11:23:25 2017 -0700
making scoreLabel work with bigBed, refs #19514
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 10ebde5..2e71aec 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -5813,31 +5813,32 @@
&minVal, &maxVal);
boolean filterByRange = trackDbSettingClosestToHomeOn(tdb, SCORE_FILTER _BY_RANGE);
if (!bigBed && filterByRange)
{
puts("Filter score range: min:");
safef(option, sizeof(option), "%s.%s", name,SCORE_FILTER _MIN);
cgiMakeIntVarWithLimits(option, minVal, "Minimum score",0, minLimit,maxLimit);
puts("max:");
safef(option, sizeof(option), "%s.%s", name,SCORE_FILTER _MAX);
cgiMakeIntVarWithLimits(option, maxVal, "Maximum score",0,minLimit,maxLimit);
printf("(%d to %d)\n",minLimit,maxLimit);
}
else
{
- printf("Show only items with score at or above: ");
+ char* scoreLabel = trackDbSettingClosestToHomeOrDefault(tdb, SCORE_LABEL, "score");
+ printf("Show only items with %s at or above: ", scoreLabel);
safef(option, sizeof(option), "%s.%s", name,SCORE_FILTER);
cgiMakeIntVarWithLimits(option, minVal, "Minimum score",0, minLimit,maxLimit);
printf(" (range: %d to %d)\n", minLimit, maxLimit);
if (!boxed)
printf("
\n");
}
if (glvlScoreMin)
printf("
");
}
if (glvlScoreMin)
scoreGrayLevelCfgUi(cart, tdb, name, maxScore);
if (!bigBed)
{