0a2d8aa2d2c0f3895ab4b8d60d6457a583f4c384 chmalee Fri Dec 20 10:16:58 2019 -0800 Adding explanation for black shaded items in pLI track to legend and track description. Also adding 'gnomAD' back to short and longlabels, refs #20394 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index b047624..7a87bc6 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -8542,42 +8542,43 @@ hButtonWithOnClick("hgt.setWidth", "resize", "Resize image width to browser window size", "hgTracksSetWidth()"); hPrintf(" "); hButtonWithMsg("hgt.refresh", "refresh","Refresh image"); hPrintf("<BR>\n"); if( chromosomeColorsMade ) { hPrintf("<B>Chromosome Color Key:</B><BR> "); hPrintf("<IMG SRC = \"../images/new_colorchrom.gif\" BORDER=1 WIDTH=596 HEIGHT=18 ><BR>\n"); } if (doPliColors) { - hPrintf("<B>pLI Color Key:</B><BR> "); + hPrintf("<B>gnomAD Loss-of-Function Constraint (pLI) Color Key:</B><BR> "); hPrintf("<table style=\"border: 1px solid black\"><tr>\n"); - hPrintf("<td style=\"background-color:rgb(0,244,153)\">< .1</td>\n"); - hPrintf("<td style=\"background-color:rgb(74,240,94)\">< .2</td>\n"); - hPrintf("<td style=\"background-color:rgb(127,233,58)\">< .3</td>\n"); - hPrintf("<td style=\"background-color:rgb(165,224,26)\">< .4</td>\n"); - hPrintf("<td style=\"background-color:rgb(191,210,22)\">< .5</td>\n"); - hPrintf("<td style=\"background-color:rgb(210,191,13)\">< .6</td>\n"); - hPrintf("<td style=\"background-color:rgb(224,165,8)\">< .7</td>\n"); - hPrintf("<td style=\"background-color:rgb(233,127,5)\">< .8</td>\n"); - hPrintf("<td style=\"background-color:rgb(240,74,3)\">< .9</td>\n"); + hPrintf("<td style=\"background-color:rgb(0,244,153)\">< 0.1</td>\n"); + hPrintf("<td style=\"background-color:rgb(74,240,94)\">< 0.2</td>\n"); + hPrintf("<td style=\"background-color:rgb(127,233,58)\">< 0.3</td>\n"); + hPrintf("<td style=\"background-color:rgb(165,224,26)\">< 0.4</td>\n"); + hPrintf("<td style=\"background-color:rgb(191,210,22)\">< 0.5</td>\n"); + hPrintf("<td style=\"background-color:rgb(210,191,13)\">< 0.6</td>\n"); + hPrintf("<td style=\"background-color:rgb(224,165,8)\">< 0.7</td>\n"); + hPrintf("<td style=\"background-color:rgb(233,127,5)\">< 0.8</td>\n"); + hPrintf("<td style=\"background-color:rgb(240,74,3)\">< 0.9</td>\n"); hPrintf("<td style=\"background-color:rgb(244,0,2)\">< 1</td>\n"); + hPrintf("<td style=\"color: white; background-color:rgb(0,0,0)\">No pLI score</td>\n"); hPrintf("</tr></table>\n"); } if (showTrackControls) { /* Display viewing options for each track. */ /* Chuck: This is going to be wrapped in a table so that * the controls don't wrap around randomly */ hPrintf("<table border=0 cellspacing=1 cellpadding=1 width=%d>\n", CONTROL_TABLE_WIDTH); hPrintf("<tr><td align='left'>\n"); hButtonWithOnClick("hgt.collapseGroups", "collapse all", "collapse all track groups", "return vis.expandAllGroups(false)"); hPrintf("</td>");