04cec773db5f693feee13b50f64c2f58579400cc gperez2 Thu Jul 17 14:33:36 2025 -0700 Updating the mouseOver and the hgc fields for bedMethyl, refs #33504 diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 609c8ea583a..03b4fc76fe7 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -8119,39 +8119,39 @@ 0xffff4444, 0xffaa4488, 0xff884488, 0xff4444aa, 0xff0000ff, }; void bedMethylMapItem(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height) /* Return name of item */ { struct bedMethyl *bed = item; struct dyString *mouseOver = newDyString(4096); dyStringPrintf(mouseOver, - "<b>Coverage:</b> %s<br>" - "<b>%%_modified:</b> %s<br>" - "<b>N_modified:</b> %s<br>" - "<b>N_canonical:</b> %s<br>" - "<b>N_other:</b> %s<br>" - "<b>N_delete:</b> %s<br>" - "<b>N_fail:</b> %s<br>" - "<b>N_diff:</b> %s<br>" - "<b>N_nocall:</b> %s", + "<b>Valid coverage:</b> %s<br>" + "<b>Percent modified:</b> %s%%<br>" + "<b>Modified calls:</b> %s<br>" + "<b>Canonical calls:</b> %s<br>" + "<b>Other modification calls:</b> %s<br>" + "<b>Reads with a deletion:</b> %s<br>" + "<b>Low-confidence calls:</b> %s<br>" + "<b>Reads with a base mismatch:</b> %s<br>" + "<b>Reads with no modification call:</b> %s", bed->nValidCov, bed->percMod, bed->nMod, bed->nCanon, bed->nOther, bed->nDelete, bed->nFail, bed->nDiff, bed->nNoCall); mapBoxHgcOrHgGene(hvg, start, end, x, y, width, height, tg->track, mapItemName, mouseOver->string, NULL, FALSE, NULL); } Color bedMethylColor(struct track *tg, void *item, struct hvGfx *hvg) /* Return color to draw methylated site in. */ { struct bedMethyl *bed = (struct bedMethyl *)item; double percent = atof(bed->percMod) / 100.0; unsigned index = percent * (sizeof(bedMethylColorArray) / sizeof(Color) - 1) + 0.5;