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, - "Coverage: %s
" - "%%_modified: %s
" - "N_modified: %s
" - "N_canonical: %s
" - "N_other: %s
" - "N_delete: %s
" - "N_fail: %s
" - "N_diff: %s
" - "N_nocall: %s", + "Valid coverage: %s
" + "Percent modified: %s%%
" + "Modified calls: %s
" + "Canonical calls: %s
" + "Other modification calls: %s
" + "Reads with a deletion: %s
" + "Low-confidence calls: %s
" + "Reads with a base mismatch: %s
" + "Reads with no modification call: %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;