a36c9987016c287c78be72b3087a0b42ae875112
gperez2
Wed Jul 9 12:15:27 2025 -0700
Updating bigMethyl mouseOver, refs #33504
diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 91ff6e498f3..ebb7c2dcb8b 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -8117,31 +8117,40 @@
0xffff0000,
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, "Cov %s, %s %% modified, N_mod %s, N_canon %s, N_other %s, N_delete %s, N_fail %s, N_diff %s, N_nocall %s",
+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",
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;