7c2d98b2096ecfe0c2a45c4a8b81a0fd41788879 kate Wed Jul 5 14:45:11 2017 -0700 Cleanup before merge. refs #15646 diff --git src/hg/hgc/gtexEqtlClusterClick.c src/hg/hgc/gtexEqtlClusterClick.c index dc4b664..6a46cf6 100644 --- src/hg/hgc/gtexEqtlClusterClick.c +++ src/hg/hgc/gtexEqtlClusterClick.c @@ -93,31 +93,30 @@ safef(posLink, sizeof posLink,"<a href='%s&db=%s&position=%s%%3A%d-%d'>%s:%d-%d</a>", hgTracksPathAndSettings(), database, eqtl->chrom, start+1, end, eqtl->chrom, start+1, end); printf("<br><b>Region containing eQTLs for this gene:</b> %s (%d bp, including +-%dbp flank)\n", posLink, end-start, FLANK); printf("<br><a target='_blank' href='https://www.gtexportal.org/home/bubbleHeatmapPage/%s'>" "View eQTLs for this gene at the GTEx portal<a>\n", geneName); printf("<br><b>Number of tissues with this eQTL:</b> %d\n", eqtl->expCount); hFreeConn(&conn); webNewSection("eQTL cluster details"); printf("<table id='eqtls' cellspacing=1 cellpadding=3>\n"); -//printf("<style>#eqtls th {text-align: left; background-color: #eaca92;}</style>"); printf("<style>#eqtls th {text-align: left; background-color: #F3E0BE;}</style>"); printf("<tr><th> </th><th>Tissue</th><th>Effect </th><th>Probability </th></tr>\n"); for (i=0; i<eqtl->expCount; i++) { double effect= eqtl->expScores[i]; double prob = eqtl->expProbs[i]; struct gtexTissue *tis = (struct gtexTissue *)hashFindVal(tissueHash, eqtl->expNames[i]); unsigned color = tis ? tis->color : 0; // BLACK char *name = tis ? tis->description : "Unknown"; printf("<tr><td bgcolor=#%06X></td><td>%s</td><td>%s%0.2f</td><td>%0.2f</td></tr>\n", color, name, effect < 0 ? "" : "+", effect, prob); } printf("</table>"); webEndSection(); webNewEmptySection();