bf04f597aad5ac68a705cf70312e0412d62aba0a gperez2 Fri May 16 14:20:11 2025 -0700 Updating the yellow bar message when too many items in display, refs #35330 diff --git src/hg/hgTracks/bamTrack.c src/hg/hgTracks/bamTrack.c index 01e718ba0e1..bf554847e6b 100644 --- src/hg/hgTracks/bamTrack.c +++ src/hg/hgTracks/bamTrack.c @@ -12,31 +12,31 @@ #include "htmshell.h" #include "hui.h" #include "jksql.h" #include "hdb.h" #include "hgTracks.h" #include "cds.h" #include "hgBam.h" #include "wigCommon.h" #include "knetUdc.h" #include "udc.h" #include "bigWarn.h" #include "errCatch.h" #include "hgConfig.h" #include "chromAlias.h" -#define TOOMANYITEMSERROR "Maximum number of BAM items exceeded. Perhaps zooming in a bit will help?" +#define TOOMANYITEMSERROR "Too many items in display (zoom in)" struct bamTrackData { struct track *tg; struct hash *pairHash; int minAliQual; char *colorMode; char *grayMode; char *userTag; int aliQualShadeMin; int aliQualShadeMax; int baseQualShadeMin; int baseQualShadeMax; int count; int maxItems; @@ -586,31 +586,31 @@ slSort(&(tg->items), linkedFeaturesCmpScore); else slSort(&(tg->items), linkedFeaturesCmpStart); if (slCount(tg->items) > MAX_ITEMS_FOR_MAPBOX) { // flag drawItems to make a mapBox for the whole track tg->customInt = 1; tg->mapItem = dontMapItem; } } } errCatchEnd(errCatch); if (errCatch->gotError) { tg->items = NULL; - tg->networkErrMsg = cloneString("Maximum number of BAM items exceeded. Perhaps zooming in a bit will help?"); + tg->networkErrMsg = cloneString("Too many items in display (zoom in)"); tg->drawItems = bigDrawWarning; tg->totalHeight = bigWarnTotalHeight; } errCatchFree(&errCatch); } void bamLoadItems(struct track *tg) /* Load single-ended-only BAM data into tg->items item list, unless zoomed out so far * that the data would just end up in dense mode and be super-slow. */ { bamLoadItemsCore(tg, FALSE); }