5239a72b96078821a5b34d7fda0cf09fa5b5340a kate Mon Sep 18 13:56:59 2017 -0700 Add units to effect size on details page table. refs #15646 diff --git src/hg/hgc/gtexEqtlClusterClick.c src/hg/hgc/gtexEqtlClusterClick.c index 7152e66..b5de604 100644 --- src/hg/hgc/gtexEqtlClusterClick.c +++ src/hg/hgc/gtexEqtlClusterClick.c @@ -96,31 +96,31 @@ posLink, end-start, FLANK); } static void printClusterDetails(struct gtexEqtlCluster *eqtl, char *table) /* Print details of an eQTL cluster */ { webNewSection("eQTL Cluster Details"); char *version = gtexVersion(table); struct gtexTissue *tissues = gtexGetTissues(version); struct hash *tissueHash = hashNew(0); struct gtexTissue *tis = NULL; for (tis = tissues; tis != NULL; tis = tis->next) hashAdd(tissueHash, tis->name, tis); printf("<table id='eqtls' cellspacing=1 cellpadding=3>\n"); printf("<style>#eqtls th {text-align: left; background-color: #F3E0BE;}</style>"); -printf("<tr><th> </th><th>Tissue</th><th>Effect </th><th>P-Value (-log10)</th><th>Probability </th></tr>\n"); +printf("<tr><th> </th><th>Tissue</th><th>Effect (FPKM) </th><th>P-Value (-log10)</th><th>Probability </th></tr>\n"); int i; for (i=0; i<eqtl->expCount; i++) { double effect = eqtl->expScores[i]; double pval = eqtl->expPvals[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><td>%0.2f</td></tr>\n", color, name, effect < 0 ? "" : "+", effect, pval, prob); } printf("</table>"); webEndSection(); }