9f8ea883fadb1ffa03ca78aab524f8235b5d4e67 braney Mon Oct 31 09:34:56 2022 -0700 change to using mean instead of max for density coverage diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index a4c238e..ddeeca0 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -4616,31 +4616,31 @@ static void genericDrawItemsWiggle(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff, int width, MgFont *font, Color color, enum trackVisibility vis) /* Draw a list of linked features into a wiggle. */ { struct wigCartOptions *wigCart = tg->wigCartData; struct preDrawContainer *pre = tg->preDrawContainer = initPreDrawContainer(insideWidth); struct trackDb *tdb = tg->tdb; boolean parentLevel = isNameAtParentLevel(tdb,tdb->track); char *autoScale = cartOptionalStringClosestToHome(cart, tdb, parentLevel, AUTOSCALE); if (autoScale == NULL) wigCart->autoScale = wiggleScaleAuto; char *windowingFunction = cartOptionalStringClosestToHome(cart, tdb, parentLevel, WINDOWINGFUNCTION); if (windowingFunction == NULL) - wigCart->windowingFunction = wiggleWindowingMax; + wigCart->windowingFunction = wiggleWindowingMean; unsigned *counts = countOverlaps(tg); countsToPixels(counts, pre); freez(&counts); tg->colorShades = shadesOfGray; hvGfxSetClip(hvg, insideX, yOff, insideWidth, tg->height); tg->mapsSelf = FALSE; // some magic to turn off the link out wigPreDrawPredraw(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis, tg->preDrawContainer, tg->preDrawContainer->preDrawZero, tg->preDrawContainer->preDrawSize, &tg->graphUpperLimit, &tg->graphLowerLimit); wigDrawPredraw(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis, tg->preDrawContainer, tg->preDrawContainer->preDrawZero, tg->preDrawContainer->preDrawSize, tg->graphUpperLimit, tg->graphLowerLimit); tg->mapsSelf = TRUE; hvGfxUnclip(hvg); }